eHealth Infrastructure
2.3.0 - release

eHealth Infrastructure - Local Development build (v2.3.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.1.0 (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": "UEsDBBQACAgIAK5RMFUAAAAAAAAAAAAAAAA5AAAAUGxhbkRlZmluaXRpb25fMTgyXzIwMjJfMDlfMTZfMTBfMTNfMjkvUGxhbkRlZmluaXRpb24vMTgypZLNTsMwEITfxRxp/tuozQ2VCycQlBPqwdibxsK1I3tTKFXenXVKmwohLkiR4uxMPN+ufWAOvO2cgNW+BVaxB83NLdTKKFTWsAlTkqrZPKflFpCz6sB24DyJd4NCdc09PreSI4RKnuZ5lC6irFxlaZUVVb6I89n8Ok2rNCX3MY6MV0Vd1HUpIRKz6Wu0KElsna2VJvWF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AAAAwADADkBAAAABgAAAAA="
      }
    }
  ]
}

Response

{
  "resourceType": "Bundle",
  "type": "transaction-response",
  "entry": [
    {
      "response": {
        "status": "201 Created",
        "location": "https://plan.cit-plan-1136.local/fhir/PlanDefinition/183/_history/1",
        "etag": "1",
        "lastModified": "2022-09-16T10:13:29.479+00:00"
      }
    },
    {
      "response": {
        "status": "201 Created",
        "location": "https://plan.cit-plan-1136.local/fhir/ActivityDefinition/184/_history/1",
        "etag": "1",
        "lastModified": "2022-09-16T10:13:29.479+00:00"
      }
    }
  ]
}