eHealth Infrastructure
2.9.0 - release

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

POST Plan Definition Import

POST [base]/PlanDefinition/$import

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiUGxhbkRlZmluaXRpb24uY3JlYXRlIiwiQWN0aXZpdHlEZWZpbml0aW9uLnVwZGF0ZSIsIkFjdGl2aXR5RGVmaW5pdGlvbi5yZWFkIiwiUGxhbkRlZmluaXRpb24uc2VhcmNoIiwiJHRlc3Qtb25seS1jcmVhdGUiLCJQbGFuRGVmaW5pdGlvbi51cGRhdGUiLCJQbGFuRGVmaW5pdGlvbi5yZWFkIiwiUGxhbkRlZmluaXRpb24kYXBwbHkiLCJEb2N1bWVudFJlZmVyZW5jZS5yZWFkIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
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": "UEsDBBQACAgIACp2EFcAAAAAAAAAAAAAAAA5AAAAUGxhbkRlZmluaXRpb25fMTQ0XzIwMjNfMDhfMTZfMTRfNDlfMjEvUGxhbkRlZmluaXRpb24vMTQ0pZLLTsMwEEX/xSzJu2lpskNlwwoEZYW6cONJY+HakT0plCr/zjihDyHEBilSnLk3vmfGPjALznS2guW+BVayR8X1HdRSS5RGs4BJQdU0z2m5BeSsPLAdWEfi/aBQXXGHL63gCL6SJdkkTOZhOlumeZkXZZZGkyy/TpIyScg9xpHxSqTT2ZQLHq4hK8KiJrG1ppaK1FfWIL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QSwUGAAAAAAMAAwA5AQAABAYAAAAA"
      }
    }
  ]
}

Response

{
  "resourceType": "Bundle",
  "type": "transaction-response",
  "entry": [
    {
      "response": {
        "status": "201 Created",
        "location": "https://plan.cit-plan-1259.local/fhir/PlanDefinition/145/_history/1",
        "etag": "1",
        "lastModified": "2023-08-16T14:49:21.579+00:00"
      }
    },
    {
      "response": {
        "status": "201 Created",
        "location": "https://plan.cit-plan-1259.local/fhir/ActivityDefinition/146/_history/1",
        "etag": "1",
        "lastModified": "2023-08-16T14:49:21.579+00:00"
      }
    }
  ]
}