Skip to content

Commit

Permalink
add validation examples
Browse files Browse the repository at this point in the history
  • Loading branch information
oliveregger committed Jan 15, 2024
1 parent 80d39b1 commit b3644c4
Show file tree
Hide file tree
Showing 2 changed files with 336 additions and 64 deletions.
333 changes: 333 additions & 0 deletions matchbox-server/examples/Bundle-1Doc-NeisseriaGonorrhoeae.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,333 @@
{
"resourceType" : "Bundle",
"id" : "1Doc-NeisseriaGonorrhoeae",
"meta" : {
"profile" : ["http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-document-strict",
"http://hl7.eu/fhir/laboratory/StructureDefinition/Bundle-eu-lab"]
},
"identifier" : {
"system" : "urn:ietf:rfc:3986",
"value" : "urn:uuid:1901332d-6012-443f-9690-9291adb2e19d"
},
"type" : "document",
"timestamp" : "2023-07-14T16:00:00+02:00",
"entry" : [{
"fullUrl" : "http://test.fhir.ch/r4/Composition/1Comp-NeisseriaGonorrhoeae",
"resource" : {
"resourceType" : "Composition",
"id" : "1Comp-NeisseriaGonorrhoeae",
"meta" : {
"profile" : ["http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-composition",
"http://hl7.eu/fhir/laboratory/StructureDefinition/Composition-eu-lab"]
},
"language" : "de-CH",
"identifier" : {
"system" : "urn:ietf:rfc:3986",
"value" : "urn:uuid:1901332d-6012-443f-9690-9291adb2e19d"
},
"status" : "final",
"type" : {
"coding" : [
{
"system" : "http://loinc.org",
"code" : "11502-2",
"display" : "Laboratory report"
}]
},
"subject" : {
"reference" : "Patient/1Pat-DM"
},
"date" : "2023-07-14T16:00:00+02:00",
"author" : [{
"reference" : "Organization/1Org-Labor"
}],
"title" : "Laborbericht vom 14.07.2023",
"section" : [{
"title" : "Analyseergebnisse der mikrobiologischen Untersuchung",
"code" : {
"coding" : [{
"system" : "http://loinc.org",
"code" : "18725-2",
"display" : "Microbiology studies (set)"
}]
},
"entry" : [{
"reference" : "Observation/1Obs-NeisseriaGonorrhoeae"
}]
}]
}
},
{
"fullUrl" : "http://test.fhir.ch/r4/DiagnosticReport/1DR-NeisseriaGonorrhoeae",
"resource" : {
"resourceType" : "DiagnosticReport",
"id" : "1DR-NeisseriaGonorrhoeae",
"meta" : {
"profile" : ["http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-diagnosticreport"]
},
"extension" : [{
"url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-DiagnosticReport.composition",
"valueReference" : {
"reference" : "Composition/1Comp-NeisseriaGonorrhoeae"
}
}],
"identifier" : [{
"system" : "urn:ietf:rfc:3986",
"value" : "urn:uuid:1901332d-6012-443f-9690-9291adb2e19d"
}],
"basedOn" : [{
"reference" : "ServiceRequest/1SR-Order"
}],
"status" : "final",
"code" : {
"coding" : [{
"system" : "http://loinc.org",
"code" : "11502-2",
"display" : "Laboratory report"
}]
},
"subject" : {
"reference" : "Patient/1Pat-DM"
},
"performer" : [{
"reference" : "Organization/1Org-Labor"
}],
"specimen" : [{
"reference" : "Specimen/1Spec-Specimen"
}],
"result" : [{
"reference" : "Observation/1Obs-NeisseriaGonorrhoeae"
}]
}
},
{
"fullUrl" : "http://test.fhir.ch/r4/Patient/1Pat-DM",
"resource" : {
"resourceType" : "Patient",
"id" : "1Pat-DM",
"meta" : {
"profile" : ["http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-patient"]
},
"identifier" : [{
"system" : "urn:oid:2.16.756.5.32",
"value" : "7562295883070"
}],
"name" : [{
"family" : "M",
"given" : ["D"]
}],
"gender" : "male",
"birthDate" : "1960-08-22",
"address" : [{
"use" : "home",
"city" : "Bern",
"state" : "BE",
"postalCode" : "3000",
"country" : "CH",
"_country" : {
"extension" : [{
"url" : "http://hl7.org/fhir/StructureDefinition/iso21090-SC-coding",
"valueCoding" : {
"system" : "urn:iso:std:iso:3166",
"code" : "CH"
}
}]
}
}]
}
},
{
"fullUrl" : "http://test.fhir.ch/r4/Observation/1Obs-NeisseriaGonorrhoeae",
"resource" : {
"resourceType" : "Observation",
"id" : "1Obs-NeisseriaGonorrhoeae",
"meta" : {
"profile" : ["http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-observation-results-laboratory-strict"]
},
"status" : "final",
"category" : [{
"coding" : [{
"system" : "http://terminology.hl7.org/CodeSystem/observation-category",
"code" : "laboratory",
"display" : "Laboratory"
}]
}],
"code" : {
"coding" : [{
"system" : "http://loinc.org",
"code" : "697-3",
"display" : "Neisseria gonorrhoeae [Presence] in Urethra by Organism specific culture"
}]
},
"subject" : {
"reference" : "Patient/1Pat-DM"
},
"effectiveDateTime" : "2023-07-14T11:10:00+02:00",
"performer" : [{
"reference" : "Organization/1Org-Labor"
}],
"valueCodeableConcept" : {
"coding" : [{
"system" : "http://snomed.info/sct",
"code" : "10828004",
"display" : "Positive (qualifier value)"
}]
},
"interpretation" : [{
"coding" : [{
"system" : "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
"code" : "POS",
"display" : "Positive"
}]
}],
"specimen" : {
"reference" : "Specimen/1Spec-Specimen"
}
}
},
{
"fullUrl" : "http://test.fhir.ch/r4/Specimen/1Spec-Specimen",
"resource" : {
"resourceType" : "Specimen",
"id" : "1Spec-Specimen",
"meta" : {
"profile" : ["http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-specimen"]
},
"type" : {
"text" : "Material declared by Observation.code or non-mandatory"
},
"subject" : {
"reference" : "Patient/1Pat-DM"
},
"collection" : {
"collectedDateTime" : "2023-07-01"
}
}
},
{
"fullUrl" : "http://test.fhir.ch/r4/ServiceRequest/1SR-Order",
"resource" : {
"resourceType" : "ServiceRequest",
"id" : "1SR-Order",
"meta" : {
"profile" : ["http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-servicerequest-laboratory-order"]
},
"identifier" : [{
"system" : "http://fhir.lab.ch/order-identifier",
"value" : "22000938108"
}],
"status" : "completed",
"intent" : "order",
"code" : {
"coding" : [{
"system" : "http://loinc.org",
"code" : "697-3",
"display" : "Neisseria gonorrhoeae [Presence] in Urethra by Organism specific culture"
}]
},
"subject" : {
"reference" : "Patient/1Pat-DM"
},
"requester" : {
"reference" : "PractitionerRole/1PR-KsAbc"
},
"specimen" : [{
"reference" : "Specimen/1Spec-Specimen"
}]
}
},
{
"fullUrl" : "http://test.fhir.ch/r4/PractitionerRole/1PR-KsAbc",
"resource" : {
"resourceType" : "PractitionerRole",
"id" : "1PR-KsAbc",
"meta" : {
"profile" : ["http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-practitionerrole-orderer"]
},
"practitioner" : {
"reference" : "Practitioner/1Pract-KsAbc"
},
"organization" : {
"reference" : "Organization/1Org-KsAbc"
}
}
},
{
"fullUrl" : "http://test.fhir.ch/r4/Practitioner/1Pract-KsAbc",
"resource" : {
"resourceType" : "Practitioner",
"id" : "1Pract-KsAbc",
"meta" : {
"profile" : ["http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-practitioner-orderer"]
},
"identifier" : [{
"system" : "urn:oid:2.51.1.3",
"value" : "7601000234438"
}],
"name" : [{
"family" : "Giacometti",
"given" : ["Monika"]
}],
"telecom" : [{
"system" : "email",
"value" : "[email protected]"
},
{
"system" : "phone",
"value" : "+41 79 111 44 55"
}]
}
},
{
"fullUrl" : "http://test.fhir.ch/r4/Organization/1Org-Labor",
"resource" : {
"resourceType" : "Organization",
"id" : "1Org-Labor",
"meta" : {
"profile" : ["http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-organization-lab"]
},
"identifier" : [{
"system" : "urn:oid:2.51.1.3",
"value" : "7601002331470"
}],
"name" : "SanLab"
}
},
{
"fullUrl" : "http://test.fhir.ch/r4/Organization/1Org-KsAbc",
"resource" : {
"resourceType" : "Organization",
"id" : "1Org-KsAbc",
"meta" : {
"profile" : ["http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-organization-orderer"]
},
"extension" : [{
"url" : "http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-ext-department",
"valueString" : "Abteilung 2"
}],
"identifier" : [{
"system" : "urn:oid:2.51.1.3",
"value" : "7601888888884"
}],
"name" : "Kantonsspital ABC",
"address" : [{
"_line" : [{
"extension" : [{
"url" : "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName",
"valueString" : "Aortastrasse"
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber",
"valueString" : "22"
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-postBox",
"valueString" : "18"
}]
}],
"city" : "Bern",
"postalCode" : "3000"
}]
}
}]
}
Loading

0 comments on commit b3644c4

Please sign in to comment.