-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test cases for instance generation
- Loading branch information
Grahame Grieve
committed
Dec 23, 2024
1 parent
c3b72d7
commit 6fa5288
Showing
15 changed files
with
3,417 additions
and
0 deletions.
There are no files selected for viewing
2,009 changes: 2,009 additions & 0 deletions
2,009
rX/instance-generation/collateral/StructureDefinition-test-patient-profile.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"resourceType" : "Encounter", | ||
"id" : "1", | ||
"meta" : { | ||
"lastUpdated" : "2024-12-24T09:01:00+11:00" | ||
}, | ||
"identifier:" : [ | ||
{ | ||
"system" : "https://github.com/projectcypress/cypress/encounter", | ||
"value" : "1" | ||
} | ||
], | ||
"status" : "finished", | ||
"period" : [ | ||
{ | ||
"start" : "2024-04-13", | ||
"end" : "2024-05-15" | ||
} | ||
], | ||
"serviceType" : { | ||
"coding" : [ | ||
{ | ||
"system" : "http://snomed.info/sct", | ||
"code" : "73761001" | ||
} | ||
] | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
rX/instance-generation/expected/MedicationStatement-1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"resourceType" : "MedicationStatement", | ||
"id" : "Mixed", | ||
"language" : "ar", | ||
"status" : "completed", | ||
"subject" : { | ||
"reference" : "Patient/47234" | ||
}, | ||
"context" : { | ||
"reference" : "Encounter/1" | ||
}, | ||
"dateAsserted" : "2024-04-13" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,147 @@ | ||
{ | ||
"resourceType" : "Observation", | ||
"id" : "Mixed", | ||
"language" : "ar", | ||
"identifier" : [{ | ||
"system" : "https://example.org/fhir/sid/test-lab-results", | ||
"value" : "59826-8_1234567890" | ||
}], | ||
"basedOn" : [{ | ||
"reference" : "CarePlan/6e4d3a43-6642-4a0b-9b67-48c29af581a9" | ||
}], | ||
"partOf" : [{ | ||
"reference" : "MedicationAdministration/6e4d3a43-6642-4a0b-9b67-48c29af581a9" | ||
}], | ||
"status" : "registered", | ||
"category" : [{ | ||
"coding" : [{ | ||
"system" : "http://terminology.hl7.org/CodeSystem/observation-category", | ||
"code" : "vital-signs" | ||
}] | ||
}], | ||
"code" : { | ||
"coding" : [{ | ||
"system" : "http://loinc.org", | ||
"code" : "85354-9" | ||
}], | ||
"text" : "Mixed" | ||
}, | ||
"subject" : { | ||
"reference" : "Patient/6e4d3a43-6642-4a0b-9b67-48c29af581a9" | ||
}, | ||
"focus" : [{ | ||
"reference" : "Account/6e4d3a43-6642-4a0b-9b67-48c29af581a9" | ||
}], | ||
"encounter" : { | ||
"reference" : "Encounter/6e4d3a43-6642-4a0b-9b67-48c29af581a9" | ||
}, | ||
"effectiveDateTime" : "2018-11-01", | ||
"performer" : [{ | ||
"reference" : "Practitioner/6e4d3a43-6642-4a0b-9b67-48c29af581a9" | ||
}], | ||
"dataAbsentReason" : { | ||
"coding" : [{ | ||
"system" : "http://terminology.hl7.org/CodeSystem/data-absent-reason", | ||
"code" : "unknown" | ||
}] | ||
}, | ||
"interpretation" : [{ | ||
"coding" : [{ | ||
"system" : "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", | ||
"code" : "CAR" | ||
}] | ||
}], | ||
"note" : [{ | ||
"time" : "2023-03-02T11:20:00+01:00", | ||
"text" : "mit Schuhen gemessen" | ||
}], | ||
"bodySite" : { | ||
"coding" : [{ | ||
"system" : "http://snomed.info/sct", | ||
"code" : "442083009" | ||
}] | ||
}, | ||
"method" : { | ||
"coding" : [{ | ||
"system" : "http://snomed.info/sct", | ||
"code" : "272394005" | ||
}] | ||
}, | ||
"specimen" : { | ||
"reference" : "Specimen/6e4d3a43-6642-4a0b-9b67-48c29af581a9" | ||
}, | ||
"device" : { | ||
"reference" : "Device/6e4d3a43-6642-4a0b-9b67-48c29af581a9" | ||
}, | ||
"referenceRange" : [{ | ||
"low" : { | ||
"value" : 4.078 | ||
}, | ||
"high" : { | ||
"value" : 11.370 | ||
}, | ||
"type" : { | ||
"coding" : [{ | ||
"system" : "http://terminology.hl7.org/CodeSystem/referencerange-meaning", | ||
"code" : "type" | ||
}] | ||
}, | ||
"appliesTo" : [{ | ||
"coding" : [{ | ||
"system" : "http://terminology.hl7.org/CodeSystem/v3-Race", | ||
"code" : "1002-5" | ||
}] | ||
}], | ||
"age" : { | ||
"low" : { | ||
"value" : 1000000, | ||
"unit" : "CFU/ml", | ||
"system" : "http://unitsofmeasure.org", | ||
"code" : "[CFU]/mL" | ||
}, | ||
"high" : { | ||
"value" : 1000000, | ||
"unit" : "CFU/ml", | ||
"system" : "http://unitsofmeasure.org", | ||
"code" : "[CFU]/mL" | ||
} | ||
}, | ||
"text" : "Normalwerte 90 - 120 ml/min/1,73m2 bei Männern" | ||
}], | ||
"hasMember" : [{ | ||
"reference" : "QuestionnaireResponse/6e4d3a43-6642-4a0b-9b67-48c29af581a9" | ||
}], | ||
"derivedFrom" : [{ | ||
"reference" : "DocumentReference/6e4d3a43-6642-4a0b-9b67-48c29af581a9" | ||
}], | ||
"component" : [{ | ||
"code" : { | ||
"coding" : [{ | ||
"system" : "http://loinc.org", | ||
"code" : "8480-6" | ||
}], | ||
"text" : "Mixed" | ||
}, | ||
"valueQuantity" : { | ||
"value" : 1000000, | ||
"unit" : "CFU/ml", | ||
"system" : "http://unitsofmeasure.org", | ||
"code" : "mm[Hg]" | ||
} | ||
}, | ||
{ | ||
"code" : { | ||
"coding" : [{ | ||
"system" : "http://loinc.org", | ||
"code" : "8462-4" | ||
}], | ||
"text" : "Mixed" | ||
}, | ||
"valueQuantity" : { | ||
"value" : 1000000, | ||
"unit" : "CFU/ml", | ||
"system" : "http://unitsofmeasure.org", | ||
"code" : "mm[Hg]" | ||
} | ||
}] | ||
} |
138 changes: 138 additions & 0 deletions
138
rX/instance-generation/expected/Observation-weight-1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,138 @@ | ||
{ | ||
"resourceType" : "Observation", | ||
"id" : "Mixed", | ||
"language" : "ar", | ||
"identifier" : [{ | ||
"system" : "https://example.org/fhir/sid/test-lab-results", | ||
"value" : "59826-8_1234567890" | ||
}], | ||
"basedOn" : [{ | ||
"reference" : "CarePlan/6e4d3a43-6642-4a0b-9b67-48c29af581a9" | ||
}], | ||
"partOf" : [{ | ||
"reference" : "MedicationAdministration/6e4d3a43-6642-4a0b-9b67-48c29af581a9" | ||
}], | ||
"status" : "registered", | ||
"category" : [{ | ||
"coding" : [{ | ||
"system" : "http://terminology.hl7.org/CodeSystem/observation-category", | ||
"code" : "vital-signs" | ||
}] | ||
}], | ||
"code" : { | ||
"coding" : [{ | ||
"system" : "http://loinc.org", | ||
"code" : "29463-7" | ||
}], | ||
"text" : "Mixed" | ||
}, | ||
"subject" : { | ||
"reference" : "Patient/6e4d3a43-6642-4a0b-9b67-48c29af581a9" | ||
}, | ||
"focus" : [{ | ||
"reference" : "Account/6e4d3a43-6642-4a0b-9b67-48c29af581a9" | ||
}], | ||
"encounter" : { | ||
"reference" : "Encounter/6e4d3a43-6642-4a0b-9b67-48c29af581a9" | ||
}, | ||
"effectiveDateTime" : "2018-11-01", | ||
"performer" : [{ | ||
"reference" : "Practitioner/6e4d3a43-6642-4a0b-9b67-48c29af581a9" | ||
}], | ||
"valueQuantity" : { | ||
"value" : 1000000, | ||
"unit" : "CFU/ml", | ||
"system" : "http://unitsofmeasure.org", | ||
"code" : "[CFU]/mL" | ||
}, | ||
"dataAbsentReason" : { | ||
"coding" : [{ | ||
"system" : "http://terminology.hl7.org/CodeSystem/data-absent-reason", | ||
"code" : "unknown" | ||
}] | ||
}, | ||
"interpretation" : [{ | ||
"coding" : [{ | ||
"system" : "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", | ||
"code" : "CAR" | ||
}] | ||
}], | ||
"note" : [{ | ||
"time" : "2023-03-02T11:20:00+01:00", | ||
"text" : "mit Schuhen gemessen" | ||
}], | ||
"bodySite" : { | ||
"coding" : [{ | ||
"system" : "http://snomed.info/sct", | ||
"code" : "442083009" | ||
}] | ||
}, | ||
"method" : { | ||
"coding" : [{ | ||
"system" : "http://snomed.info/sct", | ||
"code" : "272394005" | ||
}] | ||
}, | ||
"specimen" : { | ||
"reference" : "Specimen/6e4d3a43-6642-4a0b-9b67-48c29af581a9" | ||
}, | ||
"device" : { | ||
"reference" : "Device/6e4d3a43-6642-4a0b-9b67-48c29af581a9" | ||
}, | ||
"referenceRange" : [{ | ||
"low" : { | ||
"value" : 4.078 | ||
}, | ||
"high" : { | ||
"value" : 11.370 | ||
}, | ||
"type" : { | ||
"coding" : [{ | ||
"system" : "http://terminology.hl7.org/CodeSystem/referencerange-meaning", | ||
"code" : "type" | ||
}] | ||
}, | ||
"appliesTo" : [{ | ||
"coding" : [{ | ||
"system" : "http://terminology.hl7.org/CodeSystem/v3-Race", | ||
"code" : "1002-5" | ||
}] | ||
}], | ||
"age" : { | ||
"low" : { | ||
"value" : 1000000, | ||
"unit" : "CFU/ml", | ||
"system" : "http://unitsofmeasure.org", | ||
"code" : "[CFU]/mL" | ||
}, | ||
"high" : { | ||
"value" : 1000000, | ||
"unit" : "CFU/ml", | ||
"system" : "http://unitsofmeasure.org", | ||
"code" : "[CFU]/mL" | ||
} | ||
}, | ||
"text" : "Normalwerte 90 - 120 ml/min/1,73m2 bei Männern" | ||
}], | ||
"hasMember" : [{ | ||
"reference" : "QuestionnaireResponse/6e4d3a43-6642-4a0b-9b67-48c29af581a9" | ||
}], | ||
"derivedFrom" : [{ | ||
"reference" : "DocumentReference/6e4d3a43-6642-4a0b-9b67-48c29af581a9" | ||
}], | ||
"component" : [{ | ||
"code" : { | ||
"coding" : [{ | ||
"system" : "urn:oid:2.16.840.1.113883.6.238", | ||
"code" : "2106-3" | ||
}], | ||
"text" : "Mixed" | ||
}, | ||
"dataAbsentReason" : { | ||
"coding" : [{ | ||
"system" : "http://terminology.hl7.org/CodeSystem/data-absent-reason", | ||
"code" : "unknown" | ||
}] | ||
} | ||
}] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"resourceType" : "Patient", | ||
"id" : "47234", | ||
"identifier" : [{ | ||
"system" : "http://acme.org/identifiers/Patient", | ||
"value" : "47234" | ||
}], | ||
"active" : true, | ||
"name" : [{ | ||
"family" : "Smith", | ||
"given" : ["Jeff"] | ||
}], | ||
"telecom" : [{ | ||
"system" : "phone", | ||
"value" : "555-555-5555", | ||
"use" : "home" | ||
}], | ||
"gender" : "male", | ||
"birthDate" : "1968-05-04", | ||
"communication" : [{ | ||
"language" : { | ||
"coding" : [{ | ||
"system" : "urn:ietf:bcp:47", | ||
"code" : "ar" | ||
}] | ||
}, | ||
"preferred" : true | ||
}], | ||
"managingOrganization" : { | ||
"reference" : "Organization/1" | ||
} | ||
} |
Oops, something went wrong.