The example is from the implementation guide: ServiceRequest example operations. An update is performed by performing a PUT [base]/ServiceRequest/<ID> with the body containing the resource in the state that is desired. Example Request: PUT [base]/ServiceRequest/2297
Example body: Code Block |
---|
{
"resourceType": "ServiceRequest",
"id": "2297",
"meta": {
"versionId": "1",
"lastUpdated": "2023-05-16T07:50:59.790+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-servicerequest"
]
},
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/workflow-episodeOfCare",
"valueReference": {
"reference": "https://careplan.cit-careplan-2467.local/fhir/EpisodeOfCare/2296"
}
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-sharingPolicy",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/measurement-sharing-policies",
"code": "noSharing"
}
]
}
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-servicerequest-statusSchedule",
"extension": [
{
"url": "status",
"valueCode": "on-hold"
},
{
"url": "scheduledTime",
"valueDateTime": "2023-05-16T07:50:59+00:00"
}
]
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-servicerequest-statusSchedule",
"extension": [
{
"url": "status",
"valueCode": "revoked"
},
{
"url": "scheduledTime",
"valueDateTime": "2023-06-14T07:50:59+00:00"
}
]
}
],
"instantiatesCanonical": [
"https://plan.cit-careplan-2467.local/fhir/ActivityDefinition/94941"
],
"status": "active",
"intent": "filler-order",
"code": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/activitydefinition-code",
"code": "445988008"
}
],
"text": "12254d24-58c3-480a-946f-ca72cdfa54d3"
},
"subject": {
"reference": "https://patient.cit-careplan-2467.local/fhir/Patient/87825"
}
} |
Example Response: Code Block |
---|
{
"resourceType": "ServiceRequest",
"id": "2297",
"meta": {
"versionId": "2",
"lastUpdated": "2023-05-16T07:51:00.889+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-servicerequest"
]
},
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/workflow-episodeOfCare",
"valueReference": {
"reference": "https://careplan.cit-careplan-2467.local/fhir/EpisodeOfCare/2296"
}
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-sharingPolicy",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/measurement-sharing-policies",
"code": "noSharing"
}
]
}
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-servicerequest-statusSchedule",
"extension": [
{
"url": "status",
"valueCode": "on-hold"
},
{
"url": "scheduledTime",
"valueDateTime": "2023-05-16T07:50:59+00:00"
}
]
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-servicerequest-statusSchedule",
"extension": [
{
"url": "status",
"valueCode": "revoked"
},
{
"url": "scheduledTime",
"valueDateTime": "2023-06-14T07:50:59+00:00"
}
]
}
],
"instantiatesCanonical": [
"https://plan.cit-careplan-2467.local/fhir/ActivityDefinition/94941"
],
"status": "active",
"intent": "filler-order",
"code": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/activitydefinition-code",
"code": "445988008"
}
],
"text": "12254d24-58c3-480a-946f-ca72cdfa54d3"
},
"subject": {
"reference": "https://patient.cit-careplan-2467.local/fhir/Patient/87825"
}
} |
|