eHealth Infrastructure
2.6.0 - Release 13

eHealth Infrastructure - Local Development build (v2.6.0). See the Directory of published versions

POST Plan Definition Import

POST [base]/PlanDefinition/$import

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiUGxhbkRlZmluaXRpb24uY3JlYXRlIiwiQWN0aXZpdHlEZWZpbml0aW9uLnVwZGF0ZSIsIkFjdGl2aXR5RGVmaW5pdGlvbi5yZWFkIiwiUGxhbkRlZmluaXRpb24uc2VhcmNoIiwiJHRlc3Qtb25seS1jcmVhdGUiLCJQbGFuRGVmaW5pdGlvbi51cGRhdGUiLCJQbGFuRGVmaW5pdGlvbi5yZWFkIiwiRG9jdW1lbnRSZWZlcmVuY2UucmVhZCIsIlBsYW5EZWZpbml0aW9uJGFwcGx5Il19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
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": "planDefinitionPackage",
      "resource": {
        "resourceType": "Binary",
        "meta": {
          "profile": [
            "http://hl7.org/fhir/StructureDefinition/Binary"
          ]
        },
        "contentType": "application/gzip-json",
        "data": "UEsDBBQACAgIADtKJlYAAAAAAAAAAAAAAAA5AAAAUGxhbkRlZmluaXRpb25fMjI4XzIwMjNfMDFfMDZfMDlfMTdfNTUvUGxhbkRlZmluaXRpb24vMjI4pZJNT8MwDIb/SziytkmnffWGxoUTCMYJ7RASd43IkipxB2Pqf8fpgE0IcUGKlNR+6/exkwMLEH0XFKz2LbCK3VnprqE2zqDxjo2Y0RQtyzkdt4CSVQe2gxApeZMyguJWRnxstUQYtLwcZ1xkfLrii0rMqskkn07EJecV56Q+2pHw4rkeCwW6zKZ8rrJFsmiDr42l7B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A"
      }
    }
  ]
}

Response

{
  "resourceType": "Bundle",
  "type": "transaction-response",
  "entry": [
    {
      "response": {
        "status": "201 Created",
        "location": "https://plan.cit-plan-1191.local/fhir/PlanDefinition/229/_history/1",
        "etag": "1",
        "lastModified": "2023-01-06T09:17:55.841+00:00"
      }
    },
    {
      "response": {
        "status": "201 Created",
        "location": "https://plan.cit-plan-1191.local/fhir/ActivityDefinition/230/_history/1",
        "etag": "1",
        "lastModified": "2023-01-06T09:17:55.841+00:00"
      }
    }
  ]
}