Skip to content

Commit

Permalink
Add new patient and conditions seeds
Browse files Browse the repository at this point in the history
  • Loading branch information
projkov committed Dec 9, 2024
1 parent 763dcf8 commit 889f005
Show file tree
Hide file tree
Showing 2 changed files with 278 additions and 0 deletions.
87 changes: 87 additions & 0 deletions resources/seeds/Condition/condition-tc-2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
{
"onset": {
"dateTime": "2017-03-30"
},
"category": [
{
"coding": [
{
"code": "encounter-diagnosis",
"system": "http://terminology.hl7.org/CodeSystem/condition-category",
"display": "Encounter Diagnosis"
}
]
}
],
"clinicalStatus": {
"coding": [
{
"code": "resolved",
"system": "http://terminology.hl7.org/CodeSystem/condition-clinical",
"display": "Resolved"
}
]
},
"meta": {
"profile": [
"http://hl7.org.au/fhir/core/StructureDefinition/au-core-condition"
]
},
"encounter": {
"id": "encounter-tc",
"resourceType": "Encounter"
},
"abatement": {
"dateTime": "2015-02-14"
},
"resourceType": "Condition",
"asserter": {
"id": "practitioner-tc",
"resourceType": "Practitioner"
},
"note": [
{
"text": "Puncture wound to sole of left foot from stepping on a rusty nail. Wound red and swollen, no calf muscle tenderness, no coughing nor chest pain which excludes pulmonary embolism."
}
],
"id": "condition-tc-2",
"recorder": {
"id": "practitionerrole-tc",
"resourceType": "PractitionerRole"
},
"severity": {
"coding": [
{
"code": "24484000",
"system": "http://snomed.info/sct",
"display": "Severe"
}
]
},
"code": {
"coding": [
{
"code": "33380008",
"system": "http://snomed.info/sct",
"display": "Severe manic bipolar I disorder with psychotic features, mood-incongruent"
}
]
},
"verificationStatus": {
"coding": [
{
"code": "confirmed",
"system": "http://terminology.hl7.org/CodeSystem/condition-ver-status",
"display": "Confirmed"
}
]
},
"subject": {
"id": "patient-tc-2",
"resourceType": "Patient"
},
"text": {
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: Condition</b><a name=\"nailwound\"> </a></p><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">Resource Condition &quot;nailwound&quot; </p><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-au-core-condition.html\">AU Core Condition</a></p></div><p><b>clinicalStatus</b>: Active <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://terminology.hl7.org/5.3.0/CodeSystem-condition-clinical.html\">Condition Clinical Status Codes</a>#active)</span></p><p><b>verificationStatus</b>: Confirmed <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://terminology.hl7.org/5.3.0/CodeSystem-condition-ver-status.html\">ConditionVerificationStatus</a>#confirmed)</span></p><p><b>category</b>: Encounter Diagnosis <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://terminology.hl7.org/5.3.0/CodeSystem-condition-category.html\">Condition Category Codes</a>#encounter-diagnosis)</span></p><p><b>code</b>: Nail wound of sole of foot <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"https://browser.ihtsdotools.org/\">SNOMED CT</a>#283680004)</span></p><p><b>subject</b>: <a href=\"Patient-wang-li.html\">Patient/wang-li</a> &quot; WANG&quot;</p><p><b>encounter</b>: <a href=\"Encounter-nailwound.html\">Encounter/nailwound</a></p><p><b>onset</b>: 2017-03-30</p><p><b>recorder</b>: <a href=\"PractitionerRole-bobrester-bob-gp.html\">PractitionerRole/bobrester-bob-gp</a></p><p><b>note</b>: Puncture wound to sole of left foot from stepping on a rusty nail. Wound red and swollen, no calf muscle tenderness, no coughing nor chest pain which excludes pulmonary embolism.</p></div>",
"status": "generated"
}
}
191 changes: 191 additions & 0 deletions resources/seeds/Patient/patient-tc-2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,191 @@
{
"address": [
{
"use": "home",
"city": "Blacktown",
"line": [
"29 Gadsby Street"
],
"state": "NSW",
"country": "AU",
"postalCode": "2148"
}
],
"meta": {
"profile": [
"http://hl7.org.au/fhir/core/StructureDefinition/au-core-patient"
]
},
"name": [
{
"use": "usual",
"text": "Wang Li",
"given": [
"Li"
],
"family": "Wang",
"prefix": [
"Mr"
]
}
],
"birthDate": "1975-05-03",
"resourceType": "Patient",
"extension": [
{
"url": "http://hl7.org.au/fhir/StructureDefinition/indigenous-status",
"value": {
"Coding": {
"code": "9",
"system": "https://healthterminologies.gov.au/fhir/CodeSystem/australian-indigenous-status-1",
"display": "Not stated/inadequately described"
}
}
},
{
"url": "http://hl7.org/fhir/StructureDefinition/individual-pronouns",
"extension": [
{
"url": "value",
"value": {
"CodeableConcept": {
"coding": [
{
"code": "LA29519-8",
"system": "http://loinc.org",
"display": "she/her/her/hers/herself"
}
]
}
}
}
]
},
{
"url": "http://hl7.org/fhir/StructureDefinition/individual-genderIdentity",
"extension": [
{
"url": "value",
"value": {
"CodeableConcept": {
"coding": [
{
"code": "446151000124109",
"system": "http://snomed.info/sct",
"display": "Identifies as male gender (finding)"
}
]
}
}
}
]
}
],
"communication": [
{
"language": {
"text": "Cantonese",
"coding": [
{
"code": "yue",
"system": "urn:ietf:bcp:47"
}
]
},
"preferred": true
}
],
"id": "patient-tc-2",
"identifier": [
{
"type": {
"text": "DVA Number",
"coding": [
{
"code": "DVAU",
"system": "http://terminology.hl7.org.au/CodeSystem/v2-0203",
"display": "DVA Number"
}
]
},
"value": "QX144963",
"system": "http://ns.electronichealth.net.au/id/dva"
},
{
"type": {
"text": "IHI",
"coding": [
{
"code": "NI",
"system": "http://terminology.hl7.org/CodeSystem/v2-0203"
}
]
},
"value": "8003608833357361",
"system": "http://ns.electronichealth.net.au/id/hi/ihi/1.0",
"extension": [
{
"url": "http://hl7.org.au/fhir/StructureDefinition/ihi-status",
"value": {
"Coding": {
"code": "active",
"system": "https://healthterminologies.gov.au/fhir/CodeSystem/ihi-status-1"
}
}
},
{
"url": "http://hl7.org.au/fhir/StructureDefinition/ihi-record-status",
"value": {
"Coding": {
"code": "verified",
"system": "https://healthterminologies.gov.au/fhir/CodeSystem/ihi-record-status-1",
"display": "verified"
}
}
}
]
},
{
"type": {
"text": "Medicare Number",
"coding": [
{
"code": "MC",
"system": "http://terminology.hl7.org/CodeSystem/v2-0203"
}
]
},
"value": "29533070322",
"system": "http://ns.electronichealth.net.au/id/medicare-number"
},
{
"type": {
"text": "Medical Record Number",
"coding": [
{
"code": "MR",
"system": "http://terminology.hl7.org/CodeSystem/v2-0203",
"display": "Medical record number"
}
]
},
"value": "2338189",
"system": "http://ns.electronichealth.net.au/id/hpio-scoped/medicalrecord/1.0/8003626566699734",
"assigner": {
"display": "Large Metropolitan Hospital"
}
}
],
"telecom": [
{
"use": "home",
"value": "[email protected]",
"system": "email"
}
],
"gender": "male",
"text": {
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p style=\"border: 1px #661aff solid; background-color: #e6e6ff; padding: 10px;\"><b>Li Wang </b> male, DoB: 1975-05-03 ( IHI/8003608833357361)</p><hr/><table class=\"grid\"><tr><td style=\"background-color: #f3f5da\" title=\"Other Ids (see the one above)\">Other Ids:</td><td colspan=\"3\"><ul><li>Medicare Number/29533070322</li><li>Medical Record Number/2338189</li></ul></td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Ways to contact the Patient\">Contact Detail:</td><td colspan=\"3\">29 Gadsby Street Blacktown NSW 2148 AU (HOME)</td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Languages spoken\">Language:</td><td colspan=\"3\"><span title=\"Codes: {urn:ietf:bcp:47 yue}\">Cantonese</span> (preferred)</td></tr><tr><td style=\"background-color: #f3f5da\" title=\"The registered place of birth of the patient. A sytem may use the address.text if they don't store the birthPlace address in discrete elements.\"><a href=\"http://hl7.org/fhir/R4/extension-patient-birthplace.html\">Birth Place:</a></td><td colspan=\"3\"><ul><li>China</li></ul></td></tr><tr><td style=\"background-color: #f3f5da\" title=\"This extension applies to the Patient, RelatedPerson, and Practitioner resources and is used to represent a person's date of arrival in an Australian context (see [Australian Bureau of Statistics](https://www.abs.gov.au/AUSSTATS/[email protected]/Lookup/1200.0.55.007Main+Features12014,%20Version%201.5?OpenDocument) for further information). The date of arrival is when a person (born outside of Australia) first arrived in Australia, from another country, with the intention of living in Australia for one year or more. This date is recorded once for a person and is not subsequently updated with subsequent arrivals. This element is a part of Cultural and Linguistic Diversity (CALD) data set. It is an important indicator of cultural identity, and provides further information about a person's cultural values and practices which can be significant in determining service type, support required, and possible needs.\"><a href=\"https://build.fhir.org/ig/hl7au/au-fhir-base//StructureDefinition-date-of-arrival.html\">Date of Arrival in Australia:</a></td><td colspan=\"3\"><ul><li>2015</li></ul></td></tr><tr><td style=\"background-color: #f3f5da\" title=\"This extension applies to the Patient, Person, and RelatedPerson resources and is used to indicate whether a person identifies as being of Aboriginal or Torres Strait Islander origin.\"><a href=\"https://build.fhir.org/ig/hl7au/au-fhir-base//StructureDefinition-indigenous-status.html\">Australian Indigenous Status:</a></td><td colspan=\"3\"><ul><li>https://healthterminologies.gov.au/fhir/CodeSystem/australian-indigenous-status-1 4: Neither Aboriginal nor Torres Strait Islander origin</li></ul></td></tr><tr><td style=\"background-color: #f3f5da\" title=\"This Patient requires an interpreter to communicate healthcare information to the practitioner.\"><a href=\"http://hl7.org/fhir/R4/extension-patient-interpreterrequired.html\">interpreterRequired:</a></td><td colspan=\"3\"><ul><li>true</li></ul></td></tr></table></div>",
"status": "generated"
}
}

0 comments on commit 889f005

Please sign in to comment.