{
  "resourceType": "StructureDefinition",
  "url": "http://bookplan.dk/fhir/StructureDefinition/QuestionnaireResponsePlanTemplate",
  "version": "1.0",
  "name": "QuestionnaireResponsePlanTemplate",
  "status": "active",
  "publisher": "Capgemini Danmark A/S",
  "fhirVersion": "1.0.2",
  "kind": "resource",
  "constrainedType": "DomainResource",
  "abstract": false,
  "contextType": "resource",
  "base": "http://hl7.org/fhir/StructureDefinition/DomainResource",
  "differential": {
    "element": [
      {
        "path": "DomainResource.id",
        "min": 1,
        "maxLength": 36
      },
      {
        "path": "DomainResource.meta",
        "max": "0"
      },
      {
        "path": "DomainResource.implicitRules",
        "max": "0"
      },
      {
        "path": "DomainResource.language",
        "max": "0"
      },
      {
        "path": "DomainResource.text",
        "max": "0"
      },
      {
        "path": "DomainResource.contained",
        "max": "0"
      },
      {
        "path": "DomainResource.extension",
        "slicing": {
          "discriminator": [
            "url"
          ],
          "rules": "closed"
        }
      },
      {
        "path": "DomainResource.extension",
        "name": "responsibleOrganizationalUnit-identifier",
        "short": "Performing unit identified by SOR code (dk: SOR-kode for udførende enhed",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://bookplan.dk/fhir/StructureDefinition/questionnaireResponsePlanTemplate-responsibleOrganizationalUnit-identifier"
            ]
          }
        ],
        "isModifier": false,
        "isSummary": true
      },
      {
        "path": "DomainResource.extension.id",
        "max": "0"
      },
      {
        "path": "DomainResource.extension.valueIdentifier",
        "min": 1
      },
      {
        "path": "DomainResource.extension.valueIdentifier.id",
        "max": "0"
      },
      {
        "path": "DomainResource.extension.valueIdentifier.use",
        "max": "0"
      },
      {
        "path": "DomainResource.extension.valueIdentifier.type",
        "max": "0"
      },
      {
        "path": "DomainResource.extension.valueIdentifier.system",
        "min": 1
      },
      {
        "path": "DomainResource.extension.valueIdentifier.value",
        "min": 1
      },
      {
        "path": "DomainResource.extension.valueIdentifier.period",
        "max": "0"
      },
      {
        "path": "DomainResource.extension.valueIdentifier.assigner",
        "max": "0"
      },
      {
        "path": "DomainResource.extension",
        "name": "responsibleOrganizationalUnit",
        "short": "Reference to the performing unit",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://bookplan.dk/fhir/StructureDefinition/questionnaireResponsePlanTemplate-responsibleOrganizationalUnit"
            ]
          }
        ],
        "isModifier": false,
        "isSummary": true
      },
      {
        "path": "DomainResource.extension.id",
        "max": "0"
      },
      {
        "path": "DomainResource.extension.valueReference",
        "min": 1
      },
      {
        "path": "DomainResource.extension.valueReference.id",
        "max": "0"
      },
      {
        "path": "DomainResource.extension.valueReference.reference",
        "min": 1
      },
      {
        "path": "DomainResource.extension.valueReference.display",
        "max": "0"
      },
      {
        "path": "DomainResource.extension",
        "name": "status",
        "short": "The status for the planTemplate",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://bookplan.dk/fhir/StructureDefinition/questionnaireResponsePlanTemplate-active"
            ]
          }
        ],
        "isModifier": false,
        "isSummary": true
      },
      {
        "path": "DomainResource.extension.id",
        "max": "0"
      },
      {
        "path": "DomainResource.extension.valueCode",
        "min": 1
      },
      {
        "path": "DomainResource.extension",
        "name": "name",
        "short": "The name for the planTemplate (dk: navn)",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://bookplan.dk/fhir/StructureDefinition/questionnaireResponsePlanTemplate-name"
            ]
          }
        ],
        "isModifier": false,
        "isSummary": true
      },
      {
        "path": "DomainResource.extension.id",
        "max": "0"
      },
      {
        "path": "DomainResource.extension.valueString",
        "min": 1
      },
      {
        "path": "DomainResource.extension",
        "name": "patientDisplayName",
        "short": "The patientDisplayName for the planTemplate (dk: borgernavn)",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://bookplan.dk/fhir/StructureDefinition/questionnaireResponsePlanTemplate-patientDisplayName"
            ]
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "path": "DomainResource.extension.id",
        "max": "0"
      },
      {
        "path": "DomainResource.extension.valueString",
        "min": 1
      },
      {
        "path": "DomainResource.extension",
        "name": "description",
        "short": "The description for the planTemplate (dk: beskrivelse)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://bookplan.dk/fhir/StructureDefinition/questionnaireResponsePlanTemplate-description"
            ]
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "path": "DomainResource.extension.id",
        "max": "0"
      },
      {
        "path": "DomainResource.extension.valueString",
        "min": 1
      },
      {
        "path": "DomainResource.extension",
        "name": "firstReleaseDefinedByPROSystem",
        "short": "If the firstRelease for QuestionnaireResponsePlan with this template can only be defined by PROSystem for the planTemplate (dk: Første frigivelse defineres af PRO-system)",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://bookplan.dk/fhir/StructureDefinition/questionnaireResponsePlanTemplate-firstReleaseDefinedByPROSystem"
            ]
          }
        ],
        "isModifier": false,
        "isSummary": true
      },
      {
        "path": "DomainResource.extension.id",
        "max": "0"
      },
      {
        "path": "DomainResource.extension.valueBoolean",
        "min": 1
      }
    ]
  }
}