eHealth Infrastructure - Local Development build (v2.4.0). See the Directory of published versions
POST [base]/$submit-measurement
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiYjBjMjRkM2QtMjg2My00YmI1LWE3MDAtMzY5NzkwNWVhN2FkIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIiRzdWJtaXQtbWVhc3VyZW1lbnQiXX0sImNvbnRleHQiOnsiZXBpc29kZV9vZl9jYXJlX2lkIjoiaHR0cHM6Ly9jYXJlcGxhbi5jaXQtbWVhc3VyZW1lbnQtMTUyMS5sb2NhbC9maGlyL0VwaXNvZGVPZkNhcmUvNTQxNjYiLCJwYXRpZW50X2lkIjoiaHR0cHM6Ly9wYXRpZW50LmNpdC1tZWFzdXJlbWVudC0xNTIxLmxvY2FsL2ZoaXIvUGF0aWVudC8yMDcxOSIsInRlYW1fb25fZW9jIjpmYWxzZX0sInVzZXJfdHlwZSI6IlBSQUNUSVRJT05FUiJ9.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/6.1.0 (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:84443fa5-891d-43a0-83de-9418d130250d",
"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-1521.local/fhir/EpisodeOfCare/54166"
}
},
{
"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-1521.local/fhir/ServiceRequest/91757"
}
],
"status": "completed",
"type": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/media-type",
"code": "audio"
}
]
},
"subject": {
"reference": "https://patient.cit-measurement-1521.local/fhir/Patient/20719"
},
"createdDateTime": "2022-10-11T13:07:43+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-1521.local/fhir/Media/615/_history/1",
"etag": "1",
"lastModified": "2022-10-11T13:07:43.473+00:00"
}
}
]
}