{
  "resourceType": "StructureDefinition",
  "url": "https://simplifier.net/h-resept/StructureDefinition/ActivityDefinitionHresept",
  "name": "ActivityDefinitionHresept",
  "title": "ActivityDefinition for H-resept (Sykehusinnkjøp HF)",
  "status": "draft",
  "publisher": "Sykehusinnkjøp HF",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "ActivityDefinition",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/ActivityDefinition",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "ActivityDefinition.extension:shiGuidelineMedicinalProductExtension",
        "path": "ActivityDefinition.extension",
        "sliceName": "shiGuidelineMedicinalProductExtension",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/h-resept/StructureDefinition/shiGuidelineMedicinalProduct"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "ActivityDefinition.extension:shiGuidelinePackagedProductExtension",
        "path": "ActivityDefinition.extension",
        "sliceName": "shiGuidelinePackagedProductExtension",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/h-resept/StructureDefinition/shiGuidelinePackagedProduct"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "ActivityDefinition.url",
        "path": "ActivityDefinition.url",
        "max": "0"
      },
      {
        "id": "ActivityDefinition.identifier",
        "path": "ActivityDefinition.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "system"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "ActivityDefinition.identifier:shiActivityDefinitionId",
        "path": "ActivityDefinition.identifier",
        "sliceName": "shiActivityDefinitionId",
        "definition": "A formal identifier that is used to identify this activity definition when it is represented in other formats, or referenced in a specification, model, design or an instance.\r\n\r\nGUID",
        "min": 1,
        "max": "1",
        "patternIdentifier": {
          "system": "https://pharmasys-api.sykehusinnkjop.no/shiActivityDefinitionId"
        }
      },
      {
        "id": "ActivityDefinition.identifier:shiActivityDefinitionId.use",
        "path": "ActivityDefinition.identifier.use",
        "max": "0"
      },
      {
        "id": "ActivityDefinition.identifier:shiActivityDefinitionId.type",
        "path": "ActivityDefinition.identifier.type",
        "max": "0"
      },
      {
        "id": "ActivityDefinition.identifier:shiActivityDefinitionId.system",
        "path": "ActivityDefinition.identifier.system",
        "min": 1
      },
      {
        "id": "ActivityDefinition.identifier:shiActivityDefinitionId.value",
        "path": "ActivityDefinition.identifier.value",
        "min": 1
      },
      {
        "id": "ActivityDefinition.identifier:shiActivityDefinitionId.assigner",
        "path": "ActivityDefinition.identifier.assigner",
        "max": "0"
      },
      {
        "id": "ActivityDefinition.version",
        "path": "ActivityDefinition.version",
        "max": "0"
      },
      {
        "id": "ActivityDefinition.name",
        "path": "ActivityDefinition.name",
        "short": "The name of the treatment alternative. Usually given by the name of the medicinal product/active ingredient"
      },
      {
        "id": "ActivityDefinition.title",
        "path": "ActivityDefinition.title",
        "max": "0"
      },
      {
        "id": "ActivityDefinition.subtitle",
        "path": "ActivityDefinition.subtitle",
        "max": "0"
      },
      {
        "id": "ActivityDefinition.status",
        "path": "ActivityDefinition.status",
        "definition": "The status of this activity definition. Enables tracking the life-cycle of the content.\r\n\r\nSHI has no history on the object, so this is always “active” for published resources"
      },
      {
        "id": "ActivityDefinition.experimental",
        "path": "ActivityDefinition.experimental",
        "max": "0"
      },
      {
        "id": "ActivityDefinition.subject[x]",
        "path": "ActivityDefinition.subject[x]",
        "max": "0"
      },
      {
        "id": "ActivityDefinition.date",
        "path": "ActivityDefinition.date",
        "max": "0"
      },
      {
        "id": "ActivityDefinition.publisher",
        "path": "ActivityDefinition.publisher",
        "definition": "The name of the organization or individual that published the activity definition.\r\n\r\nHardcoded. Always \"Sykehusinnkjøp HF\""
      },
      {
        "id": "ActivityDefinition.contact",
        "path": "ActivityDefinition.contact",
        "max": "0"
      },
      {
        "id": "ActivityDefinition.description",
        "path": "ActivityDefinition.description",
        "short": "Descriptive text regarding the treatment alternative."
      },
      {
        "id": "ActivityDefinition.useContext",
        "path": "ActivityDefinition.useContext",
        "max": "0"
      },
      {
        "id": "ActivityDefinition.jurisdiction",
        "path": "ActivityDefinition.jurisdiction",
        "max": "0"
      },
      {
        "id": "ActivityDefinition.purpose",
        "path": "ActivityDefinition.purpose",
        "max": "0"
      },
      {
        "id": "ActivityDefinition.usage",
        "path": "ActivityDefinition.usage",
        "max": "0"
      },
      {
        "id": "ActivityDefinition.copyright",
        "path": "ActivityDefinition.copyright",
        "max": "0"
      },
      {
        "id": "ActivityDefinition.approvalDate",
        "path": "ActivityDefinition.approvalDate",
        "max": "0"
      },
      {
        "id": "ActivityDefinition.lastReviewDate",
        "path": "ActivityDefinition.lastReviewDate",
        "max": "0"
      },
      {
        "id": "ActivityDefinition.effectivePeriod",
        "path": "ActivityDefinition.effectivePeriod",
        "max": "0"
      },
      {
        "id": "ActivityDefinition.topic",
        "path": "ActivityDefinition.topic",
        "max": "0"
      },
      {
        "id": "ActivityDefinition.author",
        "path": "ActivityDefinition.author",
        "max": "0"
      },
      {
        "id": "ActivityDefinition.editor",
        "path": "ActivityDefinition.editor",
        "max": "0"
      },
      {
        "id": "ActivityDefinition.reviewer",
        "path": "ActivityDefinition.reviewer",
        "max": "0"
      },
      {
        "id": "ActivityDefinition.endorser",
        "path": "ActivityDefinition.endorser",
        "max": "0"
      },
      {
        "id": "ActivityDefinition.relatedArtifact",
        "path": "ActivityDefinition.relatedArtifact",
        "max": "0"
      },
      {
        "id": "ActivityDefinition.library",
        "path": "ActivityDefinition.library",
        "max": "0"
      },
      {
        "id": "ActivityDefinition.kind",
        "path": "ActivityDefinition.kind",
        "definition": "A description of the kind of resource the activity definition is representing. For example, a MedicationRequest, a ServiceRequest, or a CommunicationRequest. Typically, but not always, this is a Request resource.\r\n\r\nType of fhir profiling – always “MedicationRequest”",
        "fixedCode": "MedicationRequest"
      },
      {
        "id": "ActivityDefinition.profile",
        "path": "ActivityDefinition.profile",
        "max": "0"
      },
      {
        "id": "ActivityDefinition.code",
        "path": "ActivityDefinition.code",
        "max": "0"
      },
      {
        "id": "ActivityDefinition.intent",
        "path": "ActivityDefinition.intent",
        "max": "0"
      },
      {
        "id": "ActivityDefinition.priority",
        "path": "ActivityDefinition.priority",
        "max": "0"
      },
      {
        "id": "ActivityDefinition.doNotPerform",
        "path": "ActivityDefinition.doNotPerform",
        "max": "0"
      },
      {
        "id": "ActivityDefinition.timing[x]",
        "path": "ActivityDefinition.timing[x]",
        "max": "0"
      },
      {
        "id": "ActivityDefinition.location",
        "path": "ActivityDefinition.location",
        "max": "0"
      },
      {
        "id": "ActivityDefinition.participant",
        "path": "ActivityDefinition.participant",
        "max": "0"
      },
      {
        "id": "ActivityDefinition.product[x]",
        "path": "ActivityDefinition.product[x]",
        "max": "0"
      },
      {
        "id": "ActivityDefinition.quantity",
        "path": "ActivityDefinition.quantity",
        "max": "0"
      },
      {
        "id": "ActivityDefinition.dosage",
        "path": "ActivityDefinition.dosage",
        "max": "0"
      },
      {
        "id": "ActivityDefinition.bodySite",
        "path": "ActivityDefinition.bodySite",
        "max": "0"
      },
      {
        "id": "ActivityDefinition.specimenRequirement",
        "path": "ActivityDefinition.specimenRequirement",
        "max": "0"
      },
      {
        "id": "ActivityDefinition.observationRequirement",
        "path": "ActivityDefinition.observationRequirement",
        "max": "0"
      },
      {
        "id": "ActivityDefinition.observationResultRequirement",
        "path": "ActivityDefinition.observationResultRequirement",
        "max": "0"
      },
      {
        "id": "ActivityDefinition.transform",
        "path": "ActivityDefinition.transform",
        "max": "0"
      },
      {
        "id": "ActivityDefinition.dynamicValue",
        "path": "ActivityDefinition.dynamicValue",
        "max": "0"
      }
    ]
  }
}