eHealth Infrastructure
3.3.0 - release Denmark flag

This page is part of the FUT Infrastructure (v3.3.0: Release) based on FHIR (HL7® FHIR® Standard) R4. This is the current published version in its permanent home (it will always be available at this URL). For a full list of available versions, see the Directory of published versions

POST Plan Definition Import

POST [base]/PlanDefinition/$import

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiNWMwMTg1YTYtMWVjNi00ZWQyLThjNGUtZGQ1YzhkNzJmYThlIiwibmFtZSI6IkltcG9ydGVyIE5hbWUiLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiUGxhbkRlZmluaXRpb24uY3JlYXRlIiwiQWN0aXZpdHlEZWZpbml0aW9uLnVwZGF0ZSIsIlF1ZXN0aW9ubmFpcmUucmVhZCIsIkFjdGl2aXR5RGVmaW5pdGlvbi5yZWFkIiwiUXVlc3Rpb25uYWlyZS5jcmVhdGUiLCJEb2N1bWVudFJlZmVyZW5jZS51cGRhdGUiLCJEb2N1bWVudFJlZmVyZW5jZS5jcmVhdGUiLCJQbGFuRGVmaW5pdGlvbi51cGRhdGUiLCJQbGFuRGVmaW5pdGlvbi5yZWFkIiwiQWN0aXZpdHlEZWZpbml0aW9uLmNyZWF0ZSIsIlBsYW5EZWZpbml0aW9uJGFwcGx5IiwiRG9jdW1lbnRSZWZlcmVuY2UucmVhZCJdfSwiY29udGV4dCI6eyJvcmdhbml6YXRpb25faWQiOiJodHRwczovL29yZ2FuaXphdGlvbi5jaXQtcGxhbi0xNzg0LmxvY2FsL2ZoaXIvT3JnYW5pemF0aW9uLzEyMzM0IiwidGVhbV9vbl9lb2MiOmZhbHNlfSwidXNlcl90eXBlIjoiUFJBQ1RJVElPTkVSIn0.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/6.10.5 (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": "UEsDBBQACAgIAPN+WlkAAAAAAAAAAAAAAAA5AAAAUGxhbkRlZmluaXRpb25fMjA1XzIwMjRfMTBfMjZfMTVfNTVfMzgvUGxhbkRlZmluaXRpb24vMjA13VPLbtswEPwX9lg9qJdr6xakl55apMmp8IEmVxFRmhTIlVPX0L9nKdWxERS59FAggABRO8Od2YH2xDwEN3oJ98cBWMu+GWE/Q6etRu0sS5hWVC15Q8c9oGDtiR3ABwK/RKSguhEBHwYlEBZuWacFT8vVfdG0TdNW66zabD5y3nJO7EWOiB/Wu3Wz4nyVSiUgrYHAwbtOG0J/sB5xaPMcehAG+yyMVvWgMvUz73rt8+/oR4mjh4vbMzcdaAh1GWI7JQx+Idjomlqf2OgNGfgHhb1TutPgU+9M9P239h468GBlxA/CjHD3UqAQL+hiJJAT5x+F1b9FlMqkxnmQtPi0rjPjpDCLr69XrLysyrJg05S8qC6GZsFbp0DsDL1JZ8AoK8m4fZxdhmNA2L+Zgwz560mpQbTsnix4Nm0nepL3FGhRVlX9HwKVLhUj9u4c6jY571ncsmzeHBQ4BvoUEvUh3o2HPxFd/vdbYZ3VNB0xbyJT4/Eq8ZLXUeIZUEsHCNFTr3F6AQAA+gMAAFBLAwQUAAgICADzflpZAAAAAAAAAAAAAAAAOQAAAFBsYW5EZWZpbml0aW9uXzIwNV8yMDI0XzEwXzI2XzE1XzU1XzM4L09yZ2FuaXphdGlvbi8yMzIyMbWSPU/DMBCG/wryXDdNUlrRFRYWOoQNdbjYl8ZqYkf2uaFU+e/YgSAQqFOZrPt6H7/2nZlFZ7wV+HzqkG3Y1u5BqzcgZTSbMSVDLsuzLA1BiwRsc2ZHtC6UH2Mt5jtrKtWE6RdWE3WbJMEaoaF67ryWNcq5PCRVrWxSkPWCvMUHrJRWETL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AAOQAAAAAAAAAAAAAAAACtBwAAUGxhbkRlZmluaXRpb25fMjA1XzIwMjRfMTBfMjZfMTVfNTVfMzgvUXVlc3Rpb25uYWlyZS85MzUwUEsFBgAAAAAFAAUABwIAAHcKAAAAAA=="
      }
    }
  ]
}

Response

{
  "resourceType": "Bundle",
  "type": "transaction-response",
  "entry": [
    {
      "fullUrl": "PlanDefinition/206",
      "resource": {
        "resourceType": "PlanDefinition",
        "id": "206",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2024-10-26T15:55:38.920+00:00",
          "source": "#a63780b8-287f-48ac-bdf1-fbce6064022a",
          "profile": [
            "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-plandefinition"
          ]
        },
        "extension": [
          {
            "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-modifier-role",
            "extension": [
              {
                "url": "reference",
                "valueReference": {
                  "reference": "https://organization.cit-plan-1784.local/fhir/Organization/12334"
                }
              },
              {
                "url": "role",
                "valueCodeableConcept": {
                  "coding": [
                    {
                      "system": "http://ehealth.sundhed.dk/cs/modifier-role",
                      "code": "co-author"
                    }
                  ]
                }
              }
            ]
          },
          {
            "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-modifier-role",
            "extension": [
              {
                "url": "reference",
                "valueReference": {
                  "reference": "https://organization.cit-plan-1784.local/fhir/Organization/12334"
                }
              },
              {
                "url": "role",
                "valueCodeableConcept": {
                  "coding": [
                    {
                      "system": "http://ehealth.sundhed.dk/cs/modifier-role",
                      "code": "owner"
                    }
                  ]
                }
              }
            ]
          }
        ],
        "version": "1.0",
        "status": "draft",
        "action": [
          {
            "definitionCanonical": "https://plan.cit-plan-1784.local/fhir/ActivityDefinition/207"
          }
        ]
      },
      "response": {
        "status": "201 Created",
        "location": "https://plan.cit-plan-1784.local/fhir/PlanDefinition/206/_history/1",
        "etag": "1",
        "lastModified": "2024-10-26T15:55:38.920+00:00",
        "outcome": {
          "resourceType": "OperationOutcome",
          "text": {
            "status": "generated",
            "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td>Successfully created resource &quot;PlanDefinition/206/_history/1&quot;. Took 7ms.</td></tr></table></div>"
          },
          "issue": [
            {
              "severity": "information",
              "code": "informational",
              "details": {
                "coding": [
                  {
                    "system": "https://hapifhir.io/fhir/CodeSystem/hapi-fhir-storage-response-code",
                    "code": "SUCCESSFUL_CREATE",
                    "display": "Create succeeded."
                  }
                ]
              },
              "diagnostics": "Successfully created resource \"PlanDefinition/206/_history/1\". Took 7ms."
            }
          ]
        }
      }
    },
    {
      "fullUrl": "ActivityDefinition/207",
      "resource": {
        "resourceType": "ActivityDefinition",
        "id": "207",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2024-10-26T15:55:38.920+00:00",
          "source": "#a63780b8-287f-48ac-bdf1-fbce6064022a",
          "profile": [
            "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-activitydefinition"
          ]
        },
        "extension": [
          {
            "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-sharingPolicy",
            "valueCodeableConcept": {
              "coding": [
                {
                  "system": "http://ehealth.sundhed.dk/cs/measurement-sharing-policies",
                  "code": "noSharing"
                }
              ]
            }
          },
          {
            "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-sharingApprovalPolicy",
            "valueCodeableConcept": {
              "coding": [
                {
                  "system": "http://ehealth.sundhed.dk/cs/measurement-sharing-approval-policies",
                  "code": "manual"
                }
              ]
            }
          },
          {
            "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-modifier-role",
            "extension": [
              {
                "url": "reference",
                "valueReference": {
                  "reference": "https://organization.cit-plan-1784.local/fhir/Organization/12334"
                }
              },
              {
                "url": "role",
                "valueCodeableConcept": {
                  "coding": [
                    {
                      "system": "http://ehealth.sundhed.dk/cs/modifier-role",
                      "code": "co-author"
                    }
                  ]
                }
              }
            ]
          },
          {
            "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-modifier-role",
            "extension": [
              {
                "url": "reference",
                "valueReference": {
                  "reference": "https://organization.cit-plan-1784.local/fhir/Organization/12334"
                }
              },
              {
                "url": "role",
                "valueCodeableConcept": {
                  "coding": [
                    {
                      "system": "http://ehealth.sundhed.dk/cs/modifier-role",
                      "code": "owner"
                    }
                  ]
                }
              }
            ]
          }
        ],
        "version": "1.0",
        "name": "e7ed8337-2423-41d8-a0be-469979e79774",
        "status": "draft",
        "topic": [
          {
            "coding": [
              {
                "system": "http://terminology.hl7.org/CodeSystem/definition-topic",
                "code": "treatment"
              }
            ]
          }
        ],
        "relatedArtifact": [
          {
            "type": "composed-of",
            "resource": "https://questionnaire.cit-plan-1784.local/fhir/Questionnaire/97009"
          }
        ],
        "code": {
          "coding": [
            {
              "system": "urn:oid:1.2.208.176.2.1",
              "code": "NPU03011"
            }
          ]
        }
      },
      "response": {
        "status": "201 Created",
        "location": "https://plan.cit-plan-1784.local/fhir/ActivityDefinition/207/_history/1",
        "etag": "1",
        "lastModified": "2024-10-26T15:55:38.920+00:00",
        "outcome": {
          "resourceType": "OperationOutcome",
          "text": {
            "status": "generated",
            "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td>Successfully created resource &quot;ActivityDefinition/207/_history/1&quot;. Took 7ms.</td></tr></table></div>"
          },
          "issue": [
            {
              "severity": "information",
              "code": "informational",
              "details": {
                "coding": [
                  {
                    "system": "https://hapifhir.io/fhir/CodeSystem/hapi-fhir-storage-response-code",
                    "code": "SUCCESSFUL_CREATE",
                    "display": "Create succeeded."
                  }
                ]
              },
              "diagnostics": "Successfully created resource \"ActivityDefinition/207/_history/1\". Took 7ms."
            }
          ]
        }
      }
    },
    {
      "fullUrl": "Questionnaire/9350",
      "resource": {
        "resourceType": "Questionnaire",
        "id": "9350",
        "meta": {
          "versionId": "1",
          "profile": [
            "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-questionnaire"
          ]
        },
        "extension": [
          {
            "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-questionnaire-type",
            "valueCodeableConcept": {
              "coding": [
                {
                  "system": "http://ehealth.sundhed.dk/cs/questionnaire-types",
                  "code": "QQ"
                }
              ]
            }
          },
          {
            "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-modifier-role",
            "extension": [
              {
                "url": "reference",
                "valueReference": {
                  "reference": "https://organization.cit-plan-1784.local/fhir/Organization/12334"
                }
              },
              {
                "url": "role",
                "valueCodeableConcept": {
                  "coding": [
                    {
                      "system": "http://ehealth.sundhed.dk/cs/modifier-role",
                      "code": "owner"
                    }
                  ]
                }
              }
            ]
          },
          {
            "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-employee-title",
            "valueString": "Questionnaire_1_EmployeeTitle"
          }
        ],
        "identifier": [
          {
            "system": "urn:ietf:rfc:3986",
            "value": "urn:uuid:2.16.840.1.113883.4.642.3.21",
            "assigner": {
              "identifier": {
                "system": "http://ehealth.sundhed.dk/id/ehealth-environment",
                "value": "cit-plan-1784"
              }
            }
          }
        ],
        "version": "1.0",
        "name": "aa48b58f-418f-46cb-b0b3-60450f337669",
        "status": "draft",
        "publisher": "Importer Name",
        "item": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-minOccurs",
                "valueInteger": 2
              },
              {
                "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs",
                "valueInteger": 7
              },
              {
                "url": "http://hl7.org/fhir/StructureDefinition/minValue",
                "valueInteger": 1
              },
              {
                "url": "http://hl7.org/fhir/StructureDefinition/maxValue",
                "valueInteger": 5
              },
              {
                "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-questionnaire-feedback",
                "extension": [
                  {
                    "url": "value",
                    "valueString": "value"
                  },
                  {
                    "url": "min",
                    "valueInteger": 2
                  },
                  {
                    "url": "max",
                    "valueInteger": 4
                  }
                ]
              },
              {
                "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-sliderStepValue",
                "valueInteger": 2
              }
            ],
            "linkId": "link,link,linkA",
            "type": "integer",
            "required": true,
            "repeats": true
          }
        ]
      },
      "response": {
        "status": "201 Created",
        "location": "https://questionnaire.cit-plan-1784.local/fhir/Questionnaire/97009"
      }
    },
    {
      "response": {
        "status": "200",
        "outcome": {
          "resourceType": "OperationOutcome",
          "id": "1f214629-100f-4edd-abd8-b0915cabc2d8",
          "text": {
            "status": "generated",
            "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td>$Questionnaire|urn:uuid:2.16.840.1.113883.4.642.3.21||CO_AUTHOR_ORGANIZATIONS_FOR_QUESTIONNAIRES_REMOVED</td></tr></table></div>"
          },
          "issue": [
            {
              "severity": "information",
              "code": "informational",
              "diagnostics": "$Questionnaire|urn:uuid:2.16.840.1.113883.4.642.3.21||CO_AUTHOR_ORGANIZATIONS_FOR_QUESTIONNAIRES_REMOVED"
            }
          ]
        }
      }
    }
  ]
}