-
Notifications
You must be signed in to change notification settings - Fork 20
DiagnosticReport
Only DiagnosticReport
resources using profiles listed bellow are supported.
Profile Title | Version | Description |
---|---|---|
MI-Initiative - Laborprofile - DiagnosticReport | 2020-10-28 | This profile describes a laboratory finding in the medical informatics initiative. |
Diagnostic Report Radiology | 2020-10-29 | Radiological findings in the context of an infection with SARS-CoV-2. |
Note: currently the
Observation
contained in theDiagnosticReport
for the Laboratory Result is not saved in the local database as it's own resource. So chained parameters for theDiagnosticReport
containedObservation
won't work for the search, neither searching directly in theObservation
resource. This will change when saving the contained resources is forced by the implementation.
POST [base]/DiagnosticReport
Sample create: MI-Initiative - Laborprofile - DiagnosticReport
curl --request POST \
--url http://localhost:8888/fhir-bridge/fhir/DiagnosticReport \
--header 'content-type: application/json' \
--data '{
"resourceType": "DiagnosticReport",
"meta": {
"profile": [
"https://www.medizininformatik-initiative.de/fhir/core/modul-labor/StructureDefinition/DiagnosticReportLab"
],
"source": "http://www.highmed.org"
},
"contained": [
{
"resourceType": "Observation",
"id": "obs-1",
"meta": {
"profile": [
"https://www.medizininformatik-initiative.de/fhir/core/modul-labor/StructureDefinition/ObservationLab"
]
},
"identifier": [
{
"type": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v2-0203",
"code": "OBI"
}
]
},
"system": "https://diz.mii.de/fhir/core/NamingSystem/test-lab-results",
"value": "59826-8_1234567890",
"assigner": {
"identifier": {
"system": "https://www.medizininformatik-initiative.de/fhir/core/NamingSystem/org-identifier",
"value": "DIZ-ID"
}
}
}
],
"status": "final",
"category": [
{
"coding": [
{
"system": "http://loinc.org",
"code": "26436-6"
},
{
"system": "http://terminology.hl7.org/CodeSystem/observation-category",
"code": "laboratory"
}
]
}
],
"code": {
"coding": [
{
"system": "http://loinc.org",
"code": "732-8",
"display": "Lymphocytes [#/volume] in Blood by Manual count"
}
],
"text": "Kreatinin"
},
"subject": {
"reference": "urn:uuid:07f602e0-579e-4fe3-95af-381728bf0d49"
},
"encounter": {
"reference": "http://external.fhir.server/Encounter/555"
},
"effectiveDateTime": "2018-11-20T12:05:00+01:00",
"issued": "2018-03-11T10:28:00+01:00",
"performer": [
{
"reference": "http://external.fhir.server/Organization/7772",
"display": "Zentrallabor des IKCL"
}
],
"valueQuantity": {
"value": 72,
"unit": "µmol/l",
"system": "http://unitsofmeasure.org",
"code": "umol/L"
},
"interpretation": [
{
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
"code": "N"
}
]
}
],
"referenceRange": [
{
"low": {
"value": 72
},
"high": {
"value": 127
},
"type": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/referencerange-meaning",
"code": "normal",
"display": "Normal Range"
}
]
}
}
]
}
],
"identifier": [
{
"type": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v2-0203",
"code": "FILL"
}
]
},
"system": "https://diz.mii.de/fhir/core/NamingSystem/test-befund",
"value": "0987654666",
"assigner": {
"identifier": {
"system": "https://www.medizininformatik-initiative.de/fhir/core/NamingSystem/org-identifier",
"value": "DIZ-ID"
}
}
}
],
"basedOn": [
{
"reference": "http://external.fhir.server/ServiceRequest/111"
}
],
"status": "final",
"category": [
{
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v2-0074",
"code": "LAB"
},
{
"system": "http://loinc.org",
"code": "26436-6",
"display": "Laboratory studies"
}
]
}
],
"code": {
"coding": [
{
"system": "http://loinc.org",
"code": "11502-2",
"display": "Laboratory report"
}
]
},
"subject": {
"reference": "Patient/07f602e0-579e-4fe3-95af-381728bf0d49",
"identifier": {
"system": "urn:ietf:rfc:4122",
"value": "07f602e0-579e-4fe3-95af-381728bf0d49"
}
},
"effectiveDateTime": "2018-11-20T12:05:00+01:00",
"issued": "2018-03-11T10:28:00+01:00",
"result": [
{
"reference": "#obs-1"
}
]
}'
PUT [base]/DiagnosticReport/[id]
PUT [base]/DiagnosticReport?[parameters]
GET [base]/DiagnosticReport/[id]
GET [base]/DiagnosticReport/[id]/_history/[vid]
Note: the current search won't work with chained parameters on contained resources, like the
Observation
in theDiagnosticReport
for the Laboratory Result, or for thesubject
when thePatient
resource is not created as it's own resource. Currently thePatient
is created only whenDiagnosticReport.subject.reference
is present when creating theDiagnosticReport
.
GET [base]/DiagnosticReport{?[parameters]}
Sample search by date range: MI-Initiative - Laborprofile - DiagnosticReport
curl --request GET \
--url 'http://localhost:8888/fhir-bridge/fhir/DiagnosticReport?_profile=https%3A%2F%2Fwww.medizininformatik-initiative.de%2Ffhir%2Fcore%2Fmodul-labor%2FStructureDefinition%2FDiagnosticReportLab&date=gt2018-11-19&date=lt2020-07-08' \
--header 'prefer: return=representation'
Sample search by identifier: MI-Initiative - Laborprofile - DiagnosticReport
curl --request GET \
--url 'http://localhost:8888/fhir-bridge/fhir/DiagnosticReport?_profile=https%3A%2F%2Fwww.medizininformatik-initiative.de%2Ffhir%2Fcore%2Fmodul-labor%2FStructureDefinition%2FDiagnosticReportLab&identifier=0987654666' \
--header 'prefer: return=representation'
Sample search by category: MI-Initiative - Laborprofile - DiagnosticReport
curl --request GET \
--url 'http://localhost:8888/fhir-bridge/fhir/DiagnosticReport?_profile=https%3A%2F%2Fwww.medizininformatik-initiative.de%2Ffhir%2Fcore%2Fmodul-labor%2FStructureDefinition%2FDiagnosticReportLab&category=26436-6' \
--header 'prefer: return=representation'
Sample search by code: MI-Initiative - Laborprofile - DiagnosticReport
curl --request GET \
--url 'http://localhost:8888/fhir-bridge/fhir/DiagnosticReport?_profile=https%3A%2F%2Fwww.medizininformatik-initiative.de%2Ffhir%2Fcore%2Fmodul-labor%2FStructureDefinition%2FDiagnosticReportLab&code=11502-2' \
--header 'prefer: return=representation'
Sample search by status: MI-Initiative - Laborprofile - DiagnosticReport
curl --request GET \
--url 'http://localhost:8888/fhir-bridge/fhir/DiagnosticReport?_profile=https%3A%2F%2Fwww.medizininformatik-initiative.de%2Ffhir%2Fcore%2Fmodul-labor%2FStructureDefinition%2FDiagnosticReportLab&status=final' \
--header 'prefer: return=representation'
Sample search by subject.identifier (chained): MI-Initiative - Laborprofile - DiagnosticReport
Note: this works only if the
Patient
resource was created on it's own, when theDiagnosticReport
was created.
curl --request GET \
--url 'http://localhost:8888/fhir-bridge/fhir/DiagnosticReport?_profile=https%3A%2F%2Fwww.medizininformatik-initiative.de%2Ffhir%2Fcore%2Fmodul-labor%2FStructureDefinition%2FDiagnosticReportLab&subject.identifier=07f602e0-579e-4fe3-95af-381728bf0d49' \
--header 'prefer: return=representation'
The list of search parameters for this resource is available here.