"Docs" values
1 row is stored for this page
| Field | Field type | Value |
|---|
| Title | String | Patient (reference) |
| DocType | String | reference |
| Domain | String | clinical |
| Summary | Text | Technical reference for the Patient module in Care EMR — models, fields, relationships, and save behaviour. |
| SidebarOrder | Integer | 1 |
| IntroducedIn | String | 3.0 |
| DeprecatedIn | String | |
| FHIRResource | String | Patient |
| Model | String | Patient |
| SourceFile | String | care/emr/models/patient.py |
| Status | String | current |
19 rows are stored for this page
| Field | Field type | Value |
|---|
| Model | String | Patient |
| Section | String | Demographics |
| Field | String | name |
| FieldType | String | CharField(200) |
| Notes | Text | Display name |
| Field | Field type | Value |
|---|
| Model | String | Patient |
| Section | String | Demographics |
| Field | String | gender |
| FieldType | String | CharField(35) |
| Notes | Text | Administrative gender |
| Field | Field type | Value |
|---|
| Model | String | Patient |
| Section | String | Demographics |
| Field | String | date_of_birth |
| FieldType | String | DateField |
| Notes | Text | Nullable; preferred when known |
| Field | Field type | Value |
|---|
| Model | String | Patient |
| Section | String | Demographics |
| Field | String | year_of_birth |
| FieldType | String | IntegerField |
| Notes | Text | Min 1900; used when full DOB is unknown. Auto-set from <code>date_of_birth</code> on save |
| Field | Field type | Value |
|---|
| Model | String | Patient |
| Section | String | Demographics |
| Field | String | deceased_datetime |
| FieldType | String | DateTimeField |
| Notes | Text | Set when patient is marked deceased; affects age calculation |
| Field | Field type | Value |
|---|
| Model | String | Patient |
| Section | String | Demographics |
| Field | String | blood_group |
| FieldType | String | CharField(16) |
| Notes | Text | |
| Field | Field type | Value |
|---|
| Model | String | Patient |
| Section | String | Contact & address |
| Field | String | phone_number |
| FieldType | String | CharField(14) |
| Notes | Text | Validated with <code>mobile_or_landline_number_validator</code> |
| Field | Field type | Value |
|---|
| Model | String | Patient |
| Section | String | Contact & address |
| Field | String | emergency_phone_number |
| FieldType | String | CharField(14) |
| Notes | Text | Same validator |
| Field | Field type | Value |
|---|
| Model | String | Patient |
| Section | String | Contact & address |
| Field | String | address |
| FieldType | String | TextField |
| Notes | Text | Current address |
| Field | Field type | Value |
|---|
| Model | String | Patient |
| Section | String | Contact & address |
| Field | String | permanent_address |
| FieldType | String | TextField |
| Notes | Text | |
| Field | Field type | Value |
|---|
| Model | String | Patient |
| Section | String | Contact & address |
| Field | String | pincode |
| FieldType | String | IntegerField |
| Notes | Text | Nullable |
| Field | Field type | Value |
|---|
| Model | String | Patient |
| Section | String | Organization & access caches |
| Field | String | geo_organization |
| FieldType | String | FK → Organization |
| Notes | Text | Geographic/administrative org assignment |
| Field | Field type | Value |
|---|
| Model | String | Patient |
| Section | String | Organization & access caches |
| Field | String | organization_cache |
| FieldType | String | ArrayField[int] |
| Notes | Text | Rebuilt by <code>rebuild_organization_cache()</code> — includes <code>geo_organization</code> parent chain and all linked <code>PatientOrganization</code> orgs |
| Field | Field type | Value |
|---|
| Model | String | Patient |
| Section | String | Organization & access caches |
| Field | String | users_cache |
| FieldType | String | ArrayField[int] |
| Notes | Text | Rebuilt by <code>rebuild_users_cache()</code> — user IDs from <code>PatientUser</code> rows |
| Field | Field type | Value |
|---|
| Model | String | Patient |
| Section | String | Identifiers & tags |
| Field | String | instance_identifiers |
| FieldType | String | JSONField |
| Notes | Text | List of <code>{config, value}</code> built from <code>PatientIdentifier</code> rows (instance-scoped configs) |
| Field | Field type | Value |
|---|
| Model | String | Patient |
| Section | String | Identifiers & tags |
| Field | String | facility_identifiers |
| FieldType | String | JSONField |
| Notes | Text | Dict keyed by <code>facility_id</code> → list of <code>{config, value}</code> |
| Field | Field type | Value |
|---|
| Model | String | Patient |
| Section | String | Identifiers & tags |
| Field | String | instance_tags |
| FieldType | String | ArrayField[int] |
| Notes | Text | Instance-level tag IDs |
| Field | Field type | Value |
|---|
| Model | String | Patient |
| Section | String | Identifiers & tags |
| Field | String | facility_tags |
| FieldType | String | JSONField |
| Notes | Text | Dict keyed by facility → tag IDs |
| Field | Field type | Value |
|---|
| Model | String | Patient |
| Section | String | Identifiers & tags |
| Field | String | extensions |
| FieldType | String | JSONField |
| Notes | Text | Open extension bag for deployment-specific metadata |