Examples
Bundle
For more information, see the API docs
Submit a bundle with an observation and patient (that gets ignored)
Request:
bundle.json
{
"resourceType": "Bundle",
"type": "collection",
"entry": [
{
"resource": {
"category": [
{
"coding": [
{
"code": "vital-signs",
"display": "Vital Signs",
"system": "http://terminology.hl7.org/CodeSystem/observation-category"
}
]
}
],
"code": {
"coding": [
{
"code": "2708-6",
"display": "Oxygen saturation in arterial blood",
"system": "http://loinc.org"
}
]
},
"device": {
"display": "KOMLINK DEVICE",
"identifier": {
"system": "http://komlink.nhn.no/devices/serial",
"value": "SN-2001-54321"
},
"reference": "Device/KL-9000",
"type": "Device"
},
"effectiveInstant": "2025-10-18T11:00:00+02:00",
"id": "6aba8502-793c-4649-8b89-4dd085d8876e",
"issued": "2025-11-07T14:14:13+01:00",
"performer": [
{
"identifier": {
"value": "NHN testdatagenerator"
}
}
],
"referenceRange": [
{
"low": {
"code": "%",
"system": "http://unitsofmeasure.org",
"value": 85.0000000001
},
"type": {
"coding": [
{
"code": "N",
"display": "Normal",
"system": "https://www.hl7.org/fhir/valueset-observation-interpretation.html"
}
]
}
},
{
"high": {
"code": "%",
"system": "http://unitsofmeasure.org",
"value": 85
},
"low": {
"code": "%",
"system": "http://unitsofmeasure.org",
"value": 80.0000000001
},
"type": {
"coding": [
{
"code": "L",
"display": "Low",
"system": "https://www.hl7.org/fhir/valueset-observation-interpretation.html"
}
]
}
},
{
"high": {
"code": "%",
"system": "http://unitsofmeasure.org",
"value": 80
},
"type": {
"coding": [
{
"code": "LL",
"display": "Critical low",
"system": "https://www.hl7.org/fhir/valueset-observation-interpretation.html"
}
]
}
}
],
"resourceType": "Observation",
"status": "registered",
"subject": {
"display": "SYNTHESIZED LABORATORY",
"identifier": {
"system": "urn:oid:2.16.578.1.12.4.1.4.1",
"value": "02686525891"
}
},
"valueQuantity": {
"code": "%",
"system": "http://unitsofmeasure.org",
"value": 91
}
}
},
{
"id": "18838b4e-ed46-4e19-9e42-c3133f29cdfe",
"identifier": [
{
"system": "urn:oid:2.16.578.1.12.4.1.4.1",
"value": "12345678901"
}
],
"name": [
{
"text": "Navn Navnesen"
}
],
"resourceType": "Patient"
}
]
}
curl --location "https://pmd.test.nhn.no/" \
-H "Content-Type: application/fhir+json" \
-d @bundle.json
Response:
{
"resourceType": "Bundle",
"type": "batch-response",
"entry": [
{
"response": {
"status": "200"
}
},
{
"response": {
"status": "422"
}
}
]
}
Search
For more information, see the API docs
Find all observations for a patient
curl --location "https://pmd.test.nhn.no/Observation/_search" \
-H 'Content-Type: application/x-www-form-urlencoded' \
--data 'patient.identifier=05755844871'
Find all observations for a patient between two dates
curl --location "https://pmd.test.nhn.no/Observation/_search" \
-H 'Content-Type: application/x-www-form-urlencoded' \
--data 'patient.identifier=05755844871&date=ge2019-10-01&date=le2020-01-01'
Find all observations for a patient from a date
curl --location "https://pmd.test.nhn.no/Observation/_search" \
-H 'Content-Type: application/x-www-form-urlencoded' \
--data 'patient.identifier=05755844871&date=ge2019-10-01'
Find all observations for a patient before (and including) a date
curl --location "https://pmd.test.nhn.no/Observation/_search" \
-H 'Content-Type: application/x-www-form-urlencoded' \
--data 'patient.identifier=05755844871&date=le2020-01-01'