"Docs" values
1 row is stored for this page
| Field | Field type | Value |
|---|
| Title | String | Facility |
| DocType | String | reference |
| Domain | String | facility |
| Summary | Text | |
| SidebarOrder | Integer | 1 |
| IntroducedIn | String | 3.0 |
| DeprecatedIn | String | |
| FHIRResource | String | |
| Model | String | Facility |
| SourceFile | String | |
| Status | String | current |
19 rows are stored for this page
| Field | Field type | Value |
|---|
| Model | String | Facility |
| Section | String | Identity & classification |
| Field | String | name |
| FieldType | String | CharField(1000) |
| Notes | Text | Required (<code>blank=False, null=False</code>). Spec enforces case-insensitive uniqueness across all facilities (<code>Lower(Trim(name))</code>); on update the current row is excluded. |
| Field | Field type | Value |
|---|
| Model | String | Facility |
| Section | String | Identity & classification |
| Field | String | description |
| FieldType | String | TextField |
| Notes | Text | <code>blank=True, null=False</code>; defaults to empty string. Required (<code>str</code>) in <code>FacilityBaseSpec</code>. |
| Field | Field type | Value |
|---|
| Model | String | Facility |
| Section | String | Identity & classification |
| Field | String | facility_type |
| FieldType | String | IntegerField |
| Notes | Text | Required; choices from <code>FACILITY_TYPES</code> (see below). Wire format is the label string, not the integer: create validates the label against <code>REVERSE_REVERSE_FACILITY_TYPES</code> then maps to the int; read maps the int back to the label via <code>REVERSE_FACILITY_TYPES</code>. |
| Field | Field type | Value |
|---|
| Model | String | Facility |
| Section | String | Identity & classification |
| Field | String | features |
| FieldType | String | ArrayField[SmallIntegerField] |
| Notes | Text | Nullable; each element a <code>FacilityFeature</code> choice. Spec type <code>list[int]</code>. |
| Field | Field type | Value |
|---|
| Model | String | Facility |
| Section | String | Identity & classification |
| Field | String | is_active |
| FieldType | String | BooleanField |
| Notes | Text | <code>default=True</code>. Server-managed; the specs don't expose it. |
| Field | Field type | Value |
|---|
| Model | String | Facility |
| Section | String | Identity & classification |
| Field | String | verified |
| FieldType | String | BooleanField |
| Notes | Text | <code>default=False</code>. Server-managed; the specs don't expose it. |
| Field | Field type | Value |
|---|
| Model | String | Facility |
| Section | String | Identity & classification |
| Field | String | is_public |
| FieldType | String | BooleanField |
| Notes | Text | <code>default=False</code>; controls public visibility. Exposed as <code>bool</code> on <code>FacilityBaseSpec</code>. |
| Field | Field type | Value |
|---|
| Model | String | Facility |
| Section | String | Location & contact |
| Field | String | address |
| FieldType | String | TextField |
| Notes | Text | Free-text address. Required (<code>str</code>). |
| Field | Field type | Value |
|---|
| Model | String | Facility |
| Section | String | Location & contact |
| Field | String | pincode |
| FieldType | String | IntegerField |
| Notes | Text | <code>default=None, null=True</code> on the model; required <code>int</code> in <code>FacilityBaseSpec</code>. |
| Field | Field type | Value |
|---|
| Model | String | Facility |
| Section | String | Location & contact |
| Field | String | longitude |
| FieldType | String | DecimalField(22, 16) |
| Notes | Text | Nullable. Spec type <code>Longitude |
| Field | Field type | Value |
|---|
| Model | String | Facility |
| Section | String | Location & contact |
| Field | String | latitude |
| FieldType | String | DecimalField(22, 16) |
| Notes | Text | Nullable. Spec type <code>Latitude |
| Field | Field type | Value |
|---|
| Model | String | Facility |
| Section | String | Location & contact |
| Field | String | phone_number |
| FieldType | String | CharField(14) |
| Notes | Text | <code>blank=True</code>; validated with <code>mobile_or_landline_number_validator</code>. Spec type <code>str</code>. |
| Field | Field type | Value |
|---|
| Model | String | Facility |
| Section | String | Location & contact |
| Field | String | middleware_address |
| FieldType | String | CharField(200) |
| Notes | Text | Nullable, <code>default=None</code>. Hostname of an external device/middleware integration. Spec type <code>str |
| Field | Field type | Value |
|---|
| Model | String | Facility |
| Section | String | Organization links & caches |
| Field | String | geo_organization |
| FieldType | String | FK → emr.Organization |
| Notes | Text | <code>on_delete=SET_NULL</code>, nullable. Geographic/administrative org placement. On write (<code>FacilityCreateSpec</code>): a required <code>UUID4</code> (the org's <code>external_id</code>), resolved on deserialization to an <code>Organization</code> with <code>org_type="govt"</code>. On read: a nested <code>OrganizationReadSpec</code> dict (empty <code>{}</code> when unset). |
| Field | Field type | Value |
|---|
| Model | String | Facility |
| Section | String | Organization links & caches |
| Field | String | geo_organization_cache |
| FieldType | String | ArrayField[int] |
| Notes | Text | <code>default=list</code>. Denormalized cache of <code>geo_organization</code>'s <code>parent_cache</code> chain plus its own id; rebuilt by <code>sync_cache()</code>. Not exposed by specs. |
| Field | Field type | Value |
|---|
| Model | String | Facility |
| Section | String | Organization links & caches |
| Field | String | default_internal_organization |
| FieldType | String | FK → emr.FacilityOrganization |
| Notes | Text | <code>on_delete=SET_NULL</code>, nullable, <code>related_name="default_facilities"</code>. The auto-created root <code>Administration</code> org. Not exposed by specs. |
| Field | Field type | Value |
|---|
| Model | String | Facility |
| Section | String | Organization links & caches |
| Field | String | internal_organization_cache |
| FieldType | String | ArrayField[int] |
| Notes | Text | <code>default=list</code>. Denormalized cache of all <code>FacilityOrganization</code> ids (with parent chains) under this facility; rebuilt by <code>sync_cache()</code>. Not exposed by specs. |
| Field | Field type | Value |
|---|
| Model | String | Facility |
| Section | String | Media & presentation |
| Field | String | cover_image_url |
| FieldType | String | CharField(500) |
| Notes | Text | Nullable, <code>default=None</code>. Stores an object key, not a URL. Read specs expose both the raw <code>cover_image_url</code> and a resolved <code>read_cover_image_url</code> (full URL via <code>read_cover_image_url()</code>). |
| Field | Field type | Value |
|---|
| Model | String | Facility |
| Section | String | Integration & audit |
| Field | String | created_by |
| FieldType | String | FK → users.User |
| Notes | Text | <code>on_delete=SET_NULL</code>, nullable. Set to the facility administrator when the root org is provisioned. Read specs expose it as a nested <code>UserSpec</code> dict (cache-backed), <code>None</code> when unset. |