eHealth Infrastructure - Local Development build (v2.7.0). See the Directory of published versions
POST [base]/$submit-measurement
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiMTkyNDc1NjMtOWNmZi00OGE3LTliMTMtODNiY2M2NGVmNGQ4IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIiRzdWJtaXQtbWVhc3VyZW1lbnQiXX0sImNvbnRleHQiOnsiZXBpc29kZV9vZl9jYXJlX2lkIjoiaHR0cHM6Ly9jYXJlcGxhbi5jaXQtbWVhc3VyZW1lbnQtMTYyNi5sb2NhbC9maGlyL0VwaXNvZGVPZkNhcmUvODQ3NTgiLCJwYXRpZW50X2lkIjoiaHR0cHM6Ly9wYXRpZW50LmNpdC1tZWFzdXJlbWVudC0xNjI2LmxvY2FsL2ZoaXIvUGF0aWVudC83MjM3OSIsInRlYW1fb25fZW9jIjpmYWxzZX0sInVzZXJfdHlwZSI6IlBSQUNUSVRJT05FUiJ9.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/6.2.1 (FHIR Client; FHIR 4.0.1/R4; apache)
Accept-Encoding: gzip
Content-Type: application/fhir+json; charset=UTF-8
Body:
{
"resourceType": "Parameters",
"parameter": [
{
"name": "measurement",
"resource": {
"resourceType": "Bundle",
"type": "transaction",
"entry": [
{
"fullUrl": "urn:uuid:86f23d03-cb80-4fea-8ab1-cf2e01406771",
"resource": {
"resourceType": "Media",
"meta": {
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-media"
]
},
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/workflow-episodeOfCare",
"valueReference": {
"reference": "https://careplan.cit-measurement-1626.local/fhir/EpisodeOfCare/84758"
}
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-quality",
"extension": [
{
"url": "qualityType",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/quality-types",
"code": "TBD"
}
]
}
},
{
"url": "qualityCode",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/usage-quality",
"code": "TBD"
}
]
}
}
]
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-resolved-timing",
"extension": [
{
"url": "serviceRequestVersionId",
"valueId": "42"
},
{
"url": "type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/resolved-timing-type",
"code": "Adhoc"
}
]
}
}
]
}
],
"basedOn": [
{
"reference": "https://careplan.cit-measurement-1626.local/fhir/ServiceRequest/20944"
}
],
"status": "completed",
"type": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/media-type",
"code": "audio"
}
]
},
"subject": {
"reference": "https://patient.cit-measurement-1626.local/fhir/Patient/72379"
},
"createdDateTime": "2023-03-07T15:46:51+00:00",
"content": {
"language": "en"
}
},
"request": {
"method": "POST",
"url": "Media"
}
}
]
}
}
]
}
Response
{
"resourceType": "Bundle",
"type": "transaction-response",
"entry": [
{
"response": {
"status": "201 Created",
"location": "https://measurement.cit-measurement-1626.local/fhir/Media/617/_history/1",
"etag": "1",
"lastModified": "2023-03-07T15:46:51.277+00:00"
}
}
]
}