Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Page values for "References/Facility"

From OHC Network Wiki
More languages
More actions

"Docs" values

1 row is stored for this page
FieldField typeValue
TitleStringFacility
DocTypeStringreference
DomainStringfacility
SummaryText
SidebarOrderInteger1
IntroducedInString3.0
DeprecatedInString
FHIRResourceString
ModelStringFacility
SourceFileString
StatusStringcurrent

"ModelField" values

19 rows are stored for this page
FieldField typeValue
ModelStringFacility
SectionStringIdentity & classification
FieldStringname
FieldTypeStringCharField(1000)
NotesTextRequired (<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.
FieldField typeValue
ModelStringFacility
SectionStringIdentity &amp; classification
FieldStringdescription
FieldTypeStringTextField
NotesText<code>blank=True, null=False</code>; defaults to empty string. Required (<code>str</code>) in <code>FacilityBaseSpec</code>.
FieldField typeValue
ModelStringFacility
SectionStringIdentity &amp; classification
FieldStringfacility_type
FieldTypeStringIntegerField
NotesTextRequired; 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>.
FieldField typeValue
ModelStringFacility
SectionStringIdentity &amp; classification
FieldStringfeatures
FieldTypeStringArrayField[SmallIntegerField]
NotesTextNullable; each element a <code>FacilityFeature</code> choice. Spec type <code>list[int]</code>.
FieldField typeValue
ModelStringFacility
SectionStringIdentity &amp; classification
FieldStringis_active
FieldTypeStringBooleanField
NotesText<code>default=True</code>. Server-managed; the specs don't expose it.
FieldField typeValue
ModelStringFacility
SectionStringIdentity &amp; classification
FieldStringverified
FieldTypeStringBooleanField
NotesText<code>default=False</code>. Server-managed; the specs don't expose it.
FieldField typeValue
ModelStringFacility
SectionStringIdentity &amp; classification
FieldStringis_public
FieldTypeStringBooleanField
NotesText<code>default=False</code>; controls public visibility. Exposed as <code>bool</code> on <code>FacilityBaseSpec</code>.
FieldField typeValue
ModelStringFacility
SectionStringLocation &amp; contact
FieldStringaddress
FieldTypeStringTextField
NotesTextFree-text address. Required (<code>str</code>).
FieldField typeValue
ModelStringFacility
SectionStringLocation &amp; contact
FieldStringpincode
FieldTypeStringIntegerField
NotesText<code>default=None, null=True</code> on the model; required <code>int</code> in <code>FacilityBaseSpec</code>.
FieldField typeValue
ModelStringFacility
SectionStringLocation &amp; contact
FieldStringlongitude
FieldTypeStringDecimalField(22, 16)
NotesTextNullable. Spec type <code>Longitude
FieldField typeValue
ModelStringFacility
SectionStringLocation &amp; contact
FieldStringlatitude
FieldTypeStringDecimalField(22, 16)
NotesTextNullable. Spec type <code>Latitude
FieldField typeValue
ModelStringFacility
SectionStringLocation &amp; contact
FieldStringphone_number
FieldTypeStringCharField(14)
NotesText<code>blank=True</code>; validated with <code>mobile_or_landline_number_validator</code>. Spec type <code>str</code>.
FieldField typeValue
ModelStringFacility
SectionStringLocation &amp; contact
FieldStringmiddleware_address
FieldTypeStringCharField(200)
NotesTextNullable, <code>default=None</code>. Hostname of an external device/middleware integration. Spec type <code>str
FieldField typeValue
ModelStringFacility
SectionStringOrganization links &amp; caches
FieldStringgeo_organization
FieldTypeStringFK → emr.Organization
NotesText<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=&quot;govt&quot;</code>. On read: a nested <code>OrganizationReadSpec</code> dict (empty <code>{}</code> when unset).
FieldField typeValue
ModelStringFacility
SectionStringOrganization links &amp; caches
FieldStringgeo_organization_cache
FieldTypeStringArrayField[int]
NotesText<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.
FieldField typeValue
ModelStringFacility
SectionStringOrganization links &amp; caches
FieldStringdefault_internal_organization
FieldTypeStringFK → emr.FacilityOrganization
NotesText<code>on_delete=SET_NULL</code>, nullable, <code>related_name=&quot;default_facilities&quot;</code>. The auto-created root <code>Administration</code> org. Not exposed by specs.
FieldField typeValue
ModelStringFacility
SectionStringOrganization links &amp; caches
FieldStringinternal_organization_cache
FieldTypeStringArrayField[int]
NotesText<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.
FieldField typeValue
ModelStringFacility
SectionStringMedia &amp; presentation
FieldStringcover_image_url
FieldTypeStringCharField(500)
NotesTextNullable, <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>).
FieldField typeValue
ModelStringFacility
SectionStringIntegration &amp; audit
FieldStringcreated_by
FieldTypeStringFK → users.User
NotesText<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.