eHealth Infrastructure - Local Development build (v2.8.0). See the Directory of published versions
POST [base]/PlanDefinition/348/$apply
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiYjYwZTk5YjktOWQyOC00ZWZiLWFlYmUtODI5YzRhMjA5MTdjIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIlBsYW5EZWZpbml0aW9uJGFwcGx5Il19LCJjb250ZXh0Ijp7Im9yZ2FuaXphdGlvbl9pZCI6Imh0dHBzOi8vb3JnYW5pemF0aW9uLmNpdC1wbGFuLTEyNDAubG9jYWwvZmhpci9Pcmdhbml6YXRpb24vOTI2NDYiLCJjYXJlX3RlYW1faWQiOiJodHRwczovL29yZ2FuaXphdGlvbi5jaXQtcGxhbi0xMjQwLmxvY2FsL2ZoaXIvQ2FyZVRlYW0vMjIyMDkiLCJlcGlzb2RlX29mX2NhcmVfaWQiOiJodHRwczovL2NhcmVwbGFuLmNpdC1wbGFuLTEyNDAubG9jYWwvZmhpci9FcGlzb2RlT2ZDYXJlLzI0NDk1IiwicGF0aWVudF9pZCI6Imh0dHBzOi8vcGF0aWVudC5jaXQtcGxhbi0xMjQwLmxvY2FsL2ZoaXIvUGF0aWVudC85MDg4MCIsInRlYW1fb25fZW9jIjpmYWxzZX0sInVzZXJfdHlwZSI6IlBBVElFTlQifQ.
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": "episodeOfCare",
"valueReference": {
"reference": "https://careplan.cit-plan-1240.local/fhir/EpisodeOfCare/24495"
}
}
]
}
Response
{
"resourceType": "CarePlan",
"id": "80154",
"meta": {
"versionId": "1",
"lastUpdated": "2023-05-08T13:58:19.737+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careplan"
]
},
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/workflow-episodeOfCare",
"valueReference": {
"reference": "https://careplan.cit-plan-1240.local/fhir/EpisodeOfCare/57270"
}
}
],
"instantiatesCanonical": [
"https://plan.cit-plan-1240.local/fhir/PlanDefinition/349/_history/1"
],
"status": "draft",
"intent": "option",
"category": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/careplan-category",
"code": "TBD"
}
]
}
],
"subject": {
"reference": "https://patient.cit-plan-1240.local/fhir/Patient/43217"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"addresses": [
{
"reference": "https://careplan.cit-plan-1240.local/fhir/Condition/16154"
}
]
}