24 rows are stored for this page
| Field | Field type | Value |
|---|
| Model | String | Location |
| Section | String | Descriptive |
| Field | String | name |
| FieldType | String | CharField(255) |
| Notes | Text | <code>str</code>, required |
| Field | Field type | Value |
|---|
| Model | String | Location |
| Section | String | Descriptive |
| Field | String | description |
| FieldType | String | CharField(255) |
| Notes | Text | <code>str</code>, required |
| Field | Field type | Value |
|---|
| Model | String | Location |
| Section | String | Descriptive |
| Field | String | status |
| FieldType | String | CharField(255) |
| Notes | Text | <code>StatusChoices</code> enum |
| Field | Field type | Value |
|---|
| Model | String | Location |
| Section | String | Descriptive |
| Field | String | operational_status |
| FieldType | String | CharField(255) |
| Notes | Text | <code>FacilityLocationOperationalStatusChoices</code> enum |
| Field | Field type | Value |
|---|
| Model | String | Location |
| Section | String | Descriptive |
| Field | String | system_availability_status |
| FieldType | String | CharField(255) |
| Notes | Text | <code>str</code> (read-only) |
| Field | Field type | Value |
|---|
| Model | String | Location |
| Section | String | Descriptive |
| Field | String | mode |
| FieldType | String | CharField(255) |
| Notes | Text | <code>FacilityLocationModeChoices</code> enum |
| Field | Field type | Value |
|---|
| Model | String | Location |
| Section | String | Descriptive |
| Field | String | location_type |
| FieldType | String | JSONField (default=dict, nullable) |
| Notes | Text | <code>Coding |
| Field | Field type | Value |
|---|
| Model | String | Location |
| Section | String | Descriptive |
| Field | String | form |
| FieldType | String | CharField(255) |
| Notes | Text | <code>FacilityLocationFormChoices</code> enum |
| Field | Field type | Value |
|---|
| Model | String | Location |
| Section | String | Hierarchy & tree caches |
| Field | String | parent |
| FieldType | String | FK → FacilityLocation |
| Notes | Text | <code>SET_NULL</code>, nullable. Immediate parent. Accepted on write as a UUID (<code>parent</code>); on read it's dropped in favour of the serialized parent JSON |
| Field | Field type | Value |
|---|
| Model | String | Location |
| Section | String | Hierarchy & tree caches |
| Field | String | root_location |
| FieldType | String | FK → self |
| Notes | Text | <code>CASCADE</code>, <code>related_name="root"</code>, nullable. Top of this node's tree. Excluded from specs |
| Field | Field type | Value |
|---|
| Model | String | Location |
| Section | String | Hierarchy & tree caches |
| Field | String | has_children |
| FieldType | String | BooleanField |
| Notes | Text | <code>default=False</code>. Set <code>True</code> on the parent when a child is created. Read-only in list/retrieve specs |
| Field | Field type | Value |
|---|
| Model | String | Location |
| Section | String | Hierarchy & tree caches |
| Field | String | level_cache |
| FieldType | String | IntegerField |
| Notes | Text | <code>default=0</code>. Depth in the tree (<code>parent.level_cache + 1</code>) |
| Field | Field type | Value |
|---|
| Model | String | Location |
| Section | String | Hierarchy & tree caches |
| Field | String | parent_cache |
| FieldType | String | ArrayField[int] |
| Notes | Text | Ordered ancestor IDs (<code>parent.parent_cache + [parent.id]</code>) |
| Field | Field type | Value |
|---|
| Model | String | Location |
| Section | String | Hierarchy & tree caches |
| Field | String | cached_parent_json |
| FieldType | String | JSONField (default=dict) |
| Notes | Text | Serialized parent chain (<code>FacilityLocationListSpec</code>) plus a <code>cache_expiry</code> ISO timestamp. Rebuilt lazily by <code>get_parent_json()</code>, invalidated by the cascade task. <code>cache_expiry_days = 15</code> |
| Field | Field type | Value |
|---|
| Model | String | Location |
| Section | String | Hierarchy & tree caches |
| Field | String | sort_index |
| FieldType | String | IntegerField |
| Notes | Text | <code>default=0</code>. In specs <code>int |
| Field | Field type | Value |
|---|
| Model | String | Location |
| Section | String | Access & encounter |
| Field | String | facility |
| FieldType | String | FK → facility.Facility |
| Notes | Text | <code>PROTECT</code>. Owning facility. Excluded from specs — resolved from route/context |
| Field | Field type | Value |
|---|
| Model | String | Location |
| Section | String | Access & encounter |
| Field | String | facility_organization_cache |
| FieldType | String | ArrayField[int] |
| Notes | Text | <code>default=list</code>. Org IDs that can reach this location; rebuilt by <code>sync_organization_cache()</code> |
| Field | Field type | Value |
|---|
| Model | String | Location |
| Section | String | Access & encounter |
| Field | String | current_encounter |
| FieldType | String | FK → Encounter |
| Notes | Text | <code>SET_NULL</code>, nullable, <code>default=None</code>. Populated from <code>FacilityLocationEncounter</code>. Excluded from the base spec; surfaced as serialized JSON in list/retrieve specs |
| Field | Field type | Value |
|---|
| Model | String | Location |
| Section | String | Access & encounter |
| Field | String | metadata |
| FieldType | String | JSONField |
| Notes | Text | <code>default=dict</code>. Open extension bag for deployment-specific data |
| Field | Field type | Value |
|---|
| Model | String | Location |
| Section | String | FacilityLocationEncounter |
| Field | String | status |
| FieldType | String | CharField(25) |
| Notes | Text | <code>LocationEncounterAvailabilityStatusChoices</code> |
| Field | Field type | Value |
|---|
| Model | String | Location |
| Section | String | FacilityLocationEncounter |
| Field | String | location |
| FieldType | String | FK → FacilityLocation |
| Notes | Text | excluded / nested |
| Field | Field type | Value |
|---|
| Model | String | Location |
| Section | String | FacilityLocationEncounter |
| Field | String | encounter |
| FieldType | String | FK → Encounter |
| Notes | Text | UUID on write, JSON on read |
| Field | Field type | Value |
|---|
| Model | String | Location |
| Section | String | FacilityLocationEncounter |
| Field | String | start_datetime |
| FieldType | String | DateTimeField |
| Notes | Text | <code>datetime</code> (required) |
| Field | Field type | Value |
|---|
| Model | String | Location |
| Section | String | FacilityLocationEncounter |
| Field | String | end_datetime |
| FieldType | String | DateTimeField (nullable) |
| Notes | Text | <code>datetime |
"Docs" values
1 row is stored for this page
| Field | Field type | Value |
|---|
| Title | String | Location |
| DocType | String | reference |
| Domain | String | facility |
| Summary | Text | |
| SidebarOrder | Integer | 5 |
| IntroducedIn | String | 3.0 |
| DeprecatedIn | String | |
| FHIRResource | String | |
| Model | String | Location |
| SourceFile | String | |
| Status | String | current |