Skip to content

Commit

Permalink
update instance generation test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Grahame Grieve committed Dec 24, 2024
1 parent 4d091ae commit 131429c
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 269 deletions.
114 changes: 10 additions & 104 deletions rX/instance-generation/expected/Observation-bp-1.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,6 @@
"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" : [{
Expand All @@ -23,108 +13,25 @@
"coding" : [{
"system" : "http://loinc.org",
"code" : "85354-9"
}],
"text" : "Mixed"
}]
},
"subject" : {
"reference" : "Patient/6e4d3a43-6642-4a0b-9b67-48c29af581a9"
"reference" : "Patient/47234"
},
"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"
"reference" : "Encounter/1"
},
"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"
}],
"effectiveDateTime" : "2024-04-13",
"component" : [{
"code" : {
"coding" : [{
"system" : "http://loinc.org",
"code" : "8480-6"
}],
"text" : "Mixed"
}]
},
"valueQuantity" : {
"value" : 1000000,
"unit" : "CFU/ml",
"value" : 140,
"unit" : "mmHg",
"system" : "http://unitsofmeasure.org",
"code" : "mm[Hg]"
}
Expand All @@ -134,12 +41,11 @@
"coding" : [{
"system" : "http://loinc.org",
"code" : "8462-4"
}],
"text" : "Mixed"
}]
},
"valueQuantity" : {
"value" : 1000000,
"unit" : "CFU/ml",
"value" : 90,
"unit" : "mmHg",
"system" : "http://unitsofmeasure.org",
"code" : "mm[Hg]"
}
Expand Down
123 changes: 8 additions & 115 deletions rX/instance-generation/expected/Observation-weight-1.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,6 @@
"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" : [{
Expand All @@ -23,116 +13,19 @@
"coding" : [{
"system" : "http://loinc.org",
"code" : "29463-7"
}],
"text" : "Mixed"
}]
},
"subject" : {
"reference" : "Patient/6e4d3a43-6642-4a0b-9b67-48c29af581a9"
"reference" : "Patient/47234"
},
"focus" : [{
"reference" : "Account/6e4d3a43-6642-4a0b-9b67-48c29af581a9"
}],
"encounter" : {
"reference" : "Encounter/6e4d3a43-6642-4a0b-9b67-48c29af581a9"
"reference" : "Encounter/1"
},
"effectiveDateTime" : "2018-11-01",
"performer" : [{
"reference" : "Practitioner/6e4d3a43-6642-4a0b-9b67-48c29af581a9"
}],
"effectiveDateTime" : "2024-04-13",
"valueQuantity" : {
"value" : 1000000,
"unit" : "CFU/ml",
"value" : 65,
"unit" : "kg",
"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"
}]
}
}]
"code" : "kg"
}
}
Loading

0 comments on commit 131429c

Please sign in to comment.