{
  "resourceType": "StructureDefinition",
  "id": "hso-Lib-FestInteraction",
  "url": "https://hso.no/fhir/StructureDefinition/HsoLibFestInteraction",
  "name": "HsoLibFestInteraction",
  "status": "draft",
  "description": "HSØ implementation profile for Active Medications - Legemidler i Bruk (LiB).",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "context": [
    {
      "type": "element",
      "expression": "DetectedIssue.evidence.detail"
    }
  ],
  "type": "Basic",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Basic",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Basic.extension",
        "path": "Basic.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        }
      },
      {
        "id": "Basic.extension:interactionData",
        "path": "Basic.extension",
        "sliceName": "interactionData",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://hso.no/fhir/StructureDefinition/HsoLibFESTInteractiondata"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Basic.code",
        "path": "Basic.code",
        "mustSupport": true
      },
      {
        "id": "Basic.code.coding.system",
        "path": "Basic.code.coding.system",
        "min": 1,
        "fixedUri": "http://ehelse.no/fhir/CodeSystem/FEST"
      },
      {
        "id": "Basic.code.coding.code",
        "path": "Basic.code.coding.code",
        "min": 1
      },
      {
        "id": "Basic.subject",
        "path": "Basic.subject",
        "max": "0"
      },
      {
        "id": "Basic.created",
        "path": "Basic.created",
        "mustSupport": true
      },
      {
        "id": "Basic.author",
        "path": "Basic.author",
        "max": "0"
      }
    ]
  }
}