{
  "resourceType": "StructureDefinition",
  "url": "https://simplifier.net/h-resept/StructureDefinition/PlanDefinitionHresept",
  "name": "PlanDefinitionHresept",
  "title": "PlanDefinition for H-resept (Sykehusinnkjøp HF)",
  "status": "draft",
  "publisher": "Sykehusinnkjøp HF",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "PlanDefinition",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/PlanDefinition",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "PlanDefinition.extension:shiDiseaseGroupExtension",
        "path": "PlanDefinition.extension",
        "sliceName": "shiDiseaseGroupExtension",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/h-resept/StructureDefinition/shiDiseaseGroup"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "PlanDefinition.url",
        "path": "PlanDefinition.url",
        "max": "0"
      },
      {
        "id": "PlanDefinition.identifier",
        "path": "PlanDefinition.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "system"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "PlanDefinition.identifier:shiPlanDefinitionId",
        "path": "PlanDefinition.identifier",
        "sliceName": "shiPlanDefinitionId",
        "short": "Identifier of the treatment group (guid)",
        "min": 1,
        "max": "1",
        "patternIdentifier": {
          "system": "https://pharmasys-api.sykehusinnkjop.no/shiPlanDefinitionId"
        }
      },
      {
        "id": "PlanDefinition.identifier:shiPlanDefinitionId.extension",
        "path": "PlanDefinition.identifier.extension",
        "max": "1"
      },
      {
        "id": "PlanDefinition.identifier:shiPlanDefinitionId.use",
        "path": "PlanDefinition.identifier.use",
        "max": "0"
      },
      {
        "id": "PlanDefinition.identifier:shiPlanDefinitionId.type",
        "path": "PlanDefinition.identifier.type",
        "max": "0"
      },
      {
        "id": "PlanDefinition.identifier:shiPlanDefinitionId.system",
        "path": "PlanDefinition.identifier.system",
        "min": 1
      },
      {
        "id": "PlanDefinition.identifier:shiPlanDefinitionId.value",
        "path": "PlanDefinition.identifier.value",
        "min": 1
      },
      {
        "id": "PlanDefinition.identifier:shiPlanDefinitionId.assigner",
        "path": "PlanDefinition.identifier.assigner",
        "max": "0"
      },
      {
        "id": "PlanDefinition.version",
        "path": "PlanDefinition.version",
        "max": "0"
      },
      {
        "id": "PlanDefinition.title",
        "path": "PlanDefinition.title",
        "max": "0"
      },
      {
        "id": "PlanDefinition.subtitle",
        "path": "PlanDefinition.subtitle",
        "max": "0"
      },
      {
        "id": "PlanDefinition.type",
        "path": "PlanDefinition.type",
        "definition": "A high-level category for the plan definition that distinguishes the kinds of systems that would be interested in the plan definition.\r\n\r\nStandard hard-coded value for the type of resource, always set to clinical protocol."
      },
      {
        "id": "PlanDefinition.status",
        "path": "PlanDefinition.status",
        "definition": "The status of this plan definition. Enables tracking the life-cycle of the content.\r\n\r\nSykehusinnkjøp HF has no history on the object, so this is always “active” for published resources"
      },
      {
        "id": "PlanDefinition.experimental",
        "path": "PlanDefinition.experimental",
        "max": "0"
      },
      {
        "id": "PlanDefinition.subject[x]",
        "path": "PlanDefinition.subject[x]",
        "max": "0"
      },
      {
        "id": "PlanDefinition.date",
        "path": "PlanDefinition.date",
        "max": "0"
      },
      {
        "id": "PlanDefinition.publisher",
        "path": "PlanDefinition.publisher",
        "definition": "The name of the organization or individual that published the plan definition.\r\n\r\nHardcoded. Always \"Sykehusinnkjøp HF\""
      },
      {
        "id": "PlanDefinition.contact",
        "path": "PlanDefinition.contact",
        "max": "0"
      },
      {
        "id": "PlanDefinition.useContext",
        "path": "PlanDefinition.useContext",
        "short": "The context that the content is intended to support, contains element for region applicability"
      },
      {
        "id": "PlanDefinition.useContext.code",
        "path": "PlanDefinition.useContext.code",
        "definition": "A code that identifies the type of context being specified by this usage context.\r\n\r\nStructure element setting the type of use context."
      },
      {
        "id": "PlanDefinition.useContext.code.system",
        "path": "PlanDefinition.useContext.code.system",
        "definition": "The identification of the code system that defines the meaning of the symbol in the code.\r\n\r\nPoints to the type of codeset"
      },
      {
        "id": "PlanDefinition.useContext.code.code",
        "path": "PlanDefinition.useContext.code.code",
        "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).\r\n\r\nHardcoded – always «jurisdiction»"
      },
      {
        "id": "PlanDefinition.useContext.code.display",
        "path": "PlanDefinition.useContext.code.display",
        "definition": "A representation of the meaning of the code in the system, following the rules of the system.\r\n\r\nHardcoded – always «jurisdiction»"
      },
      {
        "id": "PlanDefinition.useContext.value[x]",
        "path": "PlanDefinition.useContext.value[x]",
        "definition": "A value that defines the context specified in this context of use. The interpretation of the value is defined by the code.\r\n\r\nTells which regions this treatment group is valid for using RESH."
      },
      {
        "id": "PlanDefinition.jurisdiction",
        "path": "PlanDefinition.jurisdiction",
        "max": "0"
      },
      {
        "id": "PlanDefinition.purpose",
        "path": "PlanDefinition.purpose",
        "max": "0"
      },
      {
        "id": "PlanDefinition.usage",
        "path": "PlanDefinition.usage",
        "max": "0"
      },
      {
        "id": "PlanDefinition.copyright",
        "path": "PlanDefinition.copyright",
        "max": "0"
      },
      {
        "id": "PlanDefinition.approvalDate",
        "path": "PlanDefinition.approvalDate",
        "max": "0"
      },
      {
        "id": "PlanDefinition.effectivePeriod",
        "path": "PlanDefinition.effectivePeriod",
        "definition": "The period during which the plan definition content was or is planned to be in active use.\r\n\r\nPure structure/hierarchy element enveloping the valid period.",
        "min": 1
      },
      {
        "id": "PlanDefinition.effectivePeriod.start",
        "path": "PlanDefinition.effectivePeriod.start",
        "min": 1
      },
      {
        "id": "PlanDefinition.effectivePeriod.end",
        "path": "PlanDefinition.effectivePeriod.end",
        "min": 1
      },
      {
        "id": "PlanDefinition.topic",
        "path": "PlanDefinition.topic",
        "max": "0"
      },
      {
        "id": "PlanDefinition.author",
        "path": "PlanDefinition.author",
        "max": "0"
      },
      {
        "id": "PlanDefinition.editor",
        "path": "PlanDefinition.editor",
        "max": "0"
      },
      {
        "id": "PlanDefinition.reviewer",
        "path": "PlanDefinition.reviewer",
        "max": "0"
      },
      {
        "id": "PlanDefinition.endorser",
        "path": "PlanDefinition.endorser",
        "max": "0"
      },
      {
        "id": "PlanDefinition.relatedArtifact",
        "path": "PlanDefinition.relatedArtifact",
        "max": "0"
      },
      {
        "id": "PlanDefinition.library",
        "path": "PlanDefinition.library",
        "max": "0"
      },
      {
        "id": "PlanDefinition.goal",
        "path": "PlanDefinition.goal",
        "definition": "Goals that describe what the activities within the plan are intended to achieve. For example, weight loss, restoring an activity of daily living, obtaining herd immunity via immunization, meeting a process improvement objective, etc.\r\n\r\nPure structure/hierachy element enveloping the list of reimbursement codes targeted for this treatment group.",
        "min": 1
      },
      {
        "id": "PlanDefinition.goal.category",
        "path": "PlanDefinition.goal.category",
        "max": "0"
      },
      {
        "id": "PlanDefinition.goal.description.coding",
        "path": "PlanDefinition.goal.description.coding",
        "max": "0"
      },
      {
        "id": "PlanDefinition.goal.description.text",
        "path": "PlanDefinition.goal.description.text",
        "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.\r\n\r\nHard coded: «Gyldig refusjonskode for behandlingsgruppe»",
        "min": 1
      },
      {
        "id": "PlanDefinition.goal.priority",
        "path": "PlanDefinition.goal.priority",
        "max": "0"
      },
      {
        "id": "PlanDefinition.goal.start",
        "path": "PlanDefinition.goal.start",
        "max": "0"
      },
      {
        "id": "PlanDefinition.goal.addresses",
        "path": "PlanDefinition.goal.addresses",
        "definition": "Identifies problems, conditions, issues, or concerns the goal is intended to address.\r\n\r\nContains list of reimbursement codes.",
        "min": 1
      },
      {
        "id": "PlanDefinition.goal.addresses.coding",
        "path": "PlanDefinition.goal.addresses.coding",
        "min": 1
      },
      {
        "id": "PlanDefinition.goal.addresses.coding.system",
        "path": "PlanDefinition.goal.addresses.coding.system",
        "definition": "The identification of the code system that defines the meaning of the symbol in the code.\r\n\r\nContains type code set – currently only using 7110 – ICD-10"
      },
      {
        "id": "PlanDefinition.goal.addresses.coding.version",
        "path": "PlanDefinition.goal.addresses.coding.version",
        "max": "0"
      },
      {
        "id": "PlanDefinition.goal.addresses.coding.code",
        "path": "PlanDefinition.goal.addresses.coding.code",
        "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).\r\n\r\nCurrently contains ICD-10 code"
      },
      {
        "id": "PlanDefinition.goal.addresses.coding.display",
        "path": "PlanDefinition.goal.addresses.coding.display",
        "definition": "A representation of the meaning of the code in the system, following the rules of the system.\r\n\r\nCurrently contains ICD-10 description"
      },
      {
        "id": "PlanDefinition.goal.addresses.coding.userSelected",
        "path": "PlanDefinition.goal.addresses.coding.userSelected",
        "max": "0"
      },
      {
        "id": "PlanDefinition.goal.addresses.text",
        "path": "PlanDefinition.goal.addresses.text",
        "max": "0"
      },
      {
        "id": "PlanDefinition.goal.documentation",
        "path": "PlanDefinition.goal.documentation",
        "max": "0"
      },
      {
        "id": "PlanDefinition.goal.target",
        "path": "PlanDefinition.goal.target",
        "max": "0"
      },
      {
        "id": "PlanDefinition.action",
        "path": "PlanDefinition.action",
        "definition": "An action or group of actions to be taken as part of the plan.\r\n\r\nPure structure element containing the list of references to the treatment alternatives.",
        "max": "1"
      },
      {
        "id": "PlanDefinition.action.extension:shiGuidelineRankExtension",
        "path": "PlanDefinition.action.extension",
        "sliceName": "shiGuidelineRankExtension",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/h-resept/StructureDefinition/shiGuidelineRank"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "PlanDefinition.action.extension:shiGuidelineMultiTherapyExtension",
        "path": "PlanDefinition.action.extension",
        "sliceName": "shiGuidelineMultiTherapyExtension",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/h-resept/StructureDefinition/shiGuidelineMultiTherapy"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "PlanDefinition.action.prefix",
        "path": "PlanDefinition.action.prefix",
        "max": "0"
      },
      {
        "id": "PlanDefinition.action.title",
        "path": "PlanDefinition.action.title",
        "max": "0"
      },
      {
        "id": "PlanDefinition.action.textEquivalent",
        "path": "PlanDefinition.action.textEquivalent",
        "max": "0"
      },
      {
        "id": "PlanDefinition.action.priority",
        "path": "PlanDefinition.action.priority",
        "max": "0"
      },
      {
        "id": "PlanDefinition.action.code",
        "path": "PlanDefinition.action.code",
        "max": "0"
      },
      {
        "id": "PlanDefinition.action.reason",
        "path": "PlanDefinition.action.reason",
        "max": "0"
      },
      {
        "id": "PlanDefinition.action.documentation",
        "path": "PlanDefinition.action.documentation",
        "max": "0"
      },
      {
        "id": "PlanDefinition.action.goalId",
        "path": "PlanDefinition.action.goalId",
        "max": "0"
      },
      {
        "id": "PlanDefinition.action.subject[x]",
        "path": "PlanDefinition.action.subject[x]",
        "max": "0"
      },
      {
        "id": "PlanDefinition.action.trigger",
        "path": "PlanDefinition.action.trigger",
        "max": "0"
      },
      {
        "id": "PlanDefinition.action.condition",
        "path": "PlanDefinition.action.condition",
        "max": "0"
      },
      {
        "id": "PlanDefinition.action.input",
        "path": "PlanDefinition.action.input",
        "max": "0"
      },
      {
        "id": "PlanDefinition.action.output",
        "path": "PlanDefinition.action.output",
        "max": "0"
      },
      {
        "id": "PlanDefinition.action.relatedAction",
        "path": "PlanDefinition.action.relatedAction",
        "max": "0"
      },
      {
        "id": "PlanDefinition.action.timing[x]",
        "path": "PlanDefinition.action.timing[x]",
        "max": "0"
      },
      {
        "id": "PlanDefinition.action.participant",
        "path": "PlanDefinition.action.participant",
        "max": "0"
      },
      {
        "id": "PlanDefinition.action.type",
        "path": "PlanDefinition.action.type",
        "max": "0"
      },
      {
        "id": "PlanDefinition.action.groupingBehavior",
        "path": "PlanDefinition.action.groupingBehavior",
        "max": "0"
      },
      {
        "id": "PlanDefinition.action.selectionBehavior",
        "path": "PlanDefinition.action.selectionBehavior",
        "max": "0"
      },
      {
        "id": "PlanDefinition.action.requiredBehavior",
        "path": "PlanDefinition.action.requiredBehavior",
        "max": "0"
      },
      {
        "id": "PlanDefinition.action.precheckBehavior",
        "path": "PlanDefinition.action.precheckBehavior",
        "max": "0"
      },
      {
        "id": "PlanDefinition.action.cardinalityBehavior",
        "path": "PlanDefinition.action.cardinalityBehavior",
        "max": "0"
      },
      {
        "id": "PlanDefinition.action.definition[x]",
        "path": "PlanDefinition.action.definition[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "PlanDefinition.action.definition[x]:definitionCanonical",
        "path": "PlanDefinition.action.definition[x]",
        "sliceName": "definitionCanonical",
        "definition": "A reference to an ActivityDefinition that describes the action to be taken in detail, or a PlanDefinition that describes a series of actions to be taken.\r\n\r\nReference to an ActivityDefinition that defines the treatment alternative.",
        "min": 1,
        "type": [
          {
            "code": "canonical",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/ActivityDefinition"
            ]
          }
        ]
      },
      {
        "id": "PlanDefinition.action.transform",
        "path": "PlanDefinition.action.transform",
        "max": "0"
      },
      {
        "id": "PlanDefinition.action.dynamicValue",
        "path": "PlanDefinition.action.dynamicValue",
        "max": "0"
      },
      {
        "id": "PlanDefinition.action.action",
        "path": "PlanDefinition.action.action",
        "max": "0"
      }
    ]
  }
}