Ασθενείς

Καταχώριση πλάνου επιβίωσης

Request

POST https://server-ol.hipaservices.com/fhir/CarePlan/

Request Body

{
    "resourceType": "CarePlan",
    "status": "completed",
    "intent": "plan",
    "created": "2026-03-03",
    "subject": {
        "reference": "Patient/00111000110"
    },
    "extension": [
        {
            "url": "http://localhost/fhir/StructureDefinition/SurvivalPlanDelivered",
            "valueBoolean": true
        },
        {
            "url": "http://localhost/fhir/StructureDefinition/CarePlanPeriod",
            "valueCodeableConcept": {
                "coding": [
                    {
                        "system": "http://localhost/fhir/fhir/ValueSet/CarePlanPeriod",
                        "code": "CarePlanPeriod.003"
                    }
                ]
            }
        },
        {
            "url": "http://localhost/fhir/fhir/StructureDefinition/NextImagingExamDate",
            "valueDateTime": "2022-03-06T00:00:00+02:00"
        },
        {
            "url": "http://localhost/fhir/fhir/StructureDefinition/NextClinicalExamDate",
            "valueDateTime": "2023-03-06T00:00:00+02:00"
        },
        {
            "url": "http://localhost/fhir/fhir/StructureDefinition/SurvivalPlanDelivered",
            "valueBoolean": true
        },
        {
            "url": "http://localhost/fhir/fhir/StructureDefinition/Specialty",
            "valueCodeableConcept": {
                "coding": [
                    {
                        "system": "http://localhost/fhir/fhir/ValueSet/Specialty",
                        "code": "Specialty.002"
                    }
                ]
            }
        }
    ],
    "note": [
        {
            "text": "Απώτερες επιπλοκές"
        }
    ],
}

Response

{
    "resourceType": "OperationOutcome",
    "issue": [
        {
            "severity": "information",
            "code": "informational",
            "diagnostics": "Resource was creted successfully!"
        }
    ]
}

Παρατηρήσεις

Το URL του νέου resource επιστρέφεται στο Location header του response.