{
  "resourceType": "StructureDefinition",
  "url": "https://example.org/fhir/StructureDefinition/ShiPlanDefinition",
  "name": "ShiPlanDefinition",
  "status": "draft",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "PlanDefinition",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/PlanDefinition",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "PlanDefinition.extension",
        "path": "PlanDefinition.extension",
        "min": 1
      },
      {
        "id": "PlanDefinition.extension:shiDisease",
        "path": "PlanDefinition.extension",
        "sliceName": "shiDisease",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://example.org/fhir/StructureDefinition/ShiDisease"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "PlanDefinition.extension:shiDiseaseGroup",
        "path": "PlanDefinition.extension",
        "sliceName": "shiDiseaseGroup",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://example.org/fhir/StructureDefinition/ShiDiseaseGroup"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "PlanDefinition.identifier",
        "path": "PlanDefinition.identifier",
        "min": 1,
        "max": "1"
      },
      {
        "id": "PlanDefinition.name",
        "path": "PlanDefinition.name",
        "example": [
          {
            "label": "name",
            "valueString": "braf-mono-terapi"
          }
        ]
      },
      {
        "id": "PlanDefinition.title",
        "path": "PlanDefinition.title",
        "example": [
          {
            "label": "Title",
            "valueString": "BRAF mono-terapi"
          }
        ]
      },
      {
        "id": "PlanDefinition.type",
        "path": "PlanDefinition.type",
        "fixedCodeableConcept": {
          "text": "clinical-protocol"
        }
      },
      {
        "id": "PlanDefinition.status",
        "path": "PlanDefinition.status",
        "example": [
          {
            "label": "status",
            "valueCode": "active"
          }
        ]
      },
      {
        "id": "PlanDefinition.publisher",
        "path": "PlanDefinition.publisher",
        "min": 1,
        "fixedString": "Sykehusinnkjøp HF"
      },
      {
        "id": "PlanDefinition.description",
        "path": "PlanDefinition.description",
        "example": [
          {
            "label": "description",
            "valueMarkdown": "Adjuvant behandling av melanom stadium IIb eller IIc"
          }
        ]
      },
      {
        "id": "PlanDefinition.useContext.code",
        "path": "PlanDefinition.useContext.code",
        "example": [
          {
            "label": "Regional applicability",
            "valueCoding": {
              "system": "http://terminology.hl7.org/codeSystem/usage-context-type",
              "code": "jurisdiction",
              "display": "Jurisdiction"
            }
          }
        ]
      },
      {
        "id": "PlanDefinition.useContext.value[x]",
        "path": "PlanDefinition.useContext.value[x]",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "PlanDefinition.useContext.value[x].coding",
        "path": "PlanDefinition.useContext.value[x].coding",
        "example": [
          {
            "label": "RESH",
            "valueCoding": {
              "system": "urn:oid:2.16.578.1.12.4.1.102",
              "code": "111919",
              "display": "HELSE SØR-ØST RHF"
            }
          }
        ]
      },
      {
        "id": "PlanDefinition.useContext.value[x].coding.system",
        "path": "PlanDefinition.useContext.value[x].coding.system",
        "binding": {
          "strength": "preferred",
          "description": "RESH",
          "valueSet": "urn:oid:2.16.578.1.12.4.1.4.102"
        }
      },
      {
        "id": "PlanDefinition.approvalDate",
        "path": "PlanDefinition.approvalDate",
        "example": [
          {
            "label": "approvalDate",
            "valueDate": "2024-01-31"
          }
        ]
      },
      {
        "id": "PlanDefinition.effectivePeriod",
        "path": "PlanDefinition.effectivePeriod",
        "min": 1,
        "example": [
          {
            "label": "effectivePeriode",
            "valuePeriod": {
              "start": "2024-02-01",
              "end": "2026-02-01"
            }
          }
        ]
      },
      {
        "id": "PlanDefinition.goal",
        "path": "PlanDefinition.goal",
        "min": 1,
        "max": "1"
      },
      {
        "id": "PlanDefinition.goal.description",
        "path": "PlanDefinition.goal.description",
        "fixedCodeableConcept": {
          "text": "Legemiddelforskrivning"
        }
      },
      {
        "id": "PlanDefinition.goal.description.text",
        "path": "PlanDefinition.goal.description.text",
        "min": 1
      },
      {
        "id": "PlanDefinition.goal.addresses",
        "path": "PlanDefinition.goal.addresses",
        "min": 1
      },
      {
        "id": "PlanDefinition.goal.addresses.coding",
        "path": "PlanDefinition.goal.addresses.coding",
        "min": 1,
        "max": "1",
        "example": [
          {
            "label": "coding",
            "valueCoding": {
              "system": "http://hl7.org/fhir/sid/icd-10",
              "code": "C43.8",
              "display": "Overlappende malignt melanon med uspesifisert lokasjon i hud"
            }
          }
        ],
        "binding": {
          "strength": "preferred",
          "valueSet": "http://hl7.org/fhir/sid/icd-10"
        }
      },
      {
        "id": "PlanDefinition.goal.addresses.coding.system",
        "path": "PlanDefinition.goal.addresses.coding.system",
        "binding": {
          "strength": "preferred",
          "valueSet": "http://hl7.org/fhir/sid/icd-10"
        }
      },
      {
        "id": "PlanDefinition.action",
        "path": "PlanDefinition.action",
        "min": 1
      },
      {
        "id": "PlanDefinition.action.extension:shiGuidelineRank",
        "path": "PlanDefinition.action.extension",
        "sliceName": "shiGuidelineRank",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://example.org/fhir/StructureDefinition/ShiGuidelineRank"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "PlanDefinition.action.extension:shiGuidelineRank.value[x]",
        "path": "PlanDefinition.action.extension.value[x]",
        "example": [
          {
            "label": "value",
            "valueInteger": 1
          }
        ]
      },
      {
        "id": "PlanDefinition.action.extension:shiGuidelineMultitherapy",
        "path": "PlanDefinition.action.extension",
        "sliceName": "shiGuidelineMultitherapy",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://example.org/fhir/StructureDefinition/ShiGuidelineMultitherapy"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "PlanDefinition.action.description",
        "path": "PlanDefinition.action.description",
        "example": [
          {
            "label": "description",
            "valueString": "Behandling av inoperabelt eller metastatisk malignt melanom (for pasienter med mutasjon i BRAF-genet)"
          }
        ]
      },
      {
        "id": "PlanDefinition.action.definition[x]",
        "path": "PlanDefinition.action.definition[x]",
        "min": 1,
        "type": [
          {
            "code": "canonical",
            "targetProfile": [
              "https://example.org/fhir/StructureDefinition/ShiActivityDefinition"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ]
      }
    ]
  }
}