Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fhir schema patient #218

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions schemas/fhirflat/r5/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# FHIRFlat schemas

This specifies deviations in FHIRFlat from the FHIR r5 specification.

Attributes marked with (PII) were removed due to having personally identifiable information

## Patient

Dropped attributes:

* `identifier` - We use `id`, `identifier` can store other identifiers for a Patient
* `active` - Whether this patient's record is in active use, not required by us
* `name` - patient name (PII)
* `telecom` - contact details of patient (PII)
* `address` - address details of patient (PII)
* `photo` - photo of patient (PII)
* `contact` - contact party for the patient (PII)
* `communication` - language which may be used to communicate with the patient about his or her health
* `link` - link to a patient that concerns the same actual individual

Changed attributes:

* `gender` - we do not store the terminology URL as the ValueSet is unlikely to change
* `maritalStatus` - codeable concepts merge terminology URL and the code
59 changes: 59 additions & 0 deletions schemas/fhirflat/r5/patient.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"$schema": "https://json-schema.org/draft-07/schema",
"title": "FHIR Patient",
"required": [
"id",
"gender"
],
"properties": {
"id": {
"type": "string"
},
"gender": {
"enum": [
"male",
"female",
"other",
"unknown"
]
},
"birthDate": {
"type": "string"
},
"deceasedBoolean": {
"type": "boolean"
},
"deceasedDateTime": {
"type": "string"
},
"maritalStatus": {
"enum": [
"http://terminology.hl7.org/CodeSystem/v3-MaritalStatus/A",
"http://terminology.hl7.org/CodeSystem/v3-MaritalStatus/D",
"http://terminology.hl7.org/CodeSystem/v3-MaritalStatus/I",
"http://terminology.hl7.org/CodeSystem/v3-MaritalStatus/L",
"http://terminology.hl7.org/CodeSystem/v3-MaritalStatus/M",
"http://terminology.hl7.org/CodeSystem/v3-MaritalStatus/C",
"http://terminology.hl7.org/CodeSystem/v3-MaritalStatus/P",
"http://terminology.hl7.org/CodeSystem/v3-MaritalStatus/T",
"http://terminology.hl7.org/CodeSystem/v3-MaritalStatus/U",
"http://terminology.hl7.org/CodeSystem/v3-MaritalStatus/S",
"http://terminology.hl7.org/CodeSystem/v3-MaritalStatus/W",
"http://terminology.hl7.org/CodeSystem/v3-NullFlavor"
]
},
"multipleBirthBoolean": {
"type": "boolean"
},
"multipleBirthInteger": {
"type": "integer",
"minimum": 1
},
"generalPractitioner": {
"type": "string"
},
"managingOrganization": {
"type": "string"
}
}
}