{
  "resourceType": "StructureDefinition",
  "id": "sfm-Indicator",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2025-01-01T00:00:00+00:00"
  },
  "url": "http://ehelse.no/fhir/StructureDefinition/sfm-indicator",
  "version": "1.0",
  "name": "SfmIndicator",
  "title": "sfm-Indicator",
  "status": "active",
  "date": "2025-01-01",
  "description": "Resource to communicate indicator information for patient medication changes. An Indicator represents a flag, notification, or reminder that some noteworthy change has occurred to a patient's data—requiring attention, awareness, or review by clinicians or external systems.",
  "fhirVersion": "4.0.0",
  "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,
  "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"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Basic.extension:patientPid",
        "path": "Basic.extension",
        "sliceName": "patientPid",
        "short": "Patient identifier with change",
        "definition": "The patient identifier (PID) for the patient whose medication data has changed.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://ehelse.no/fhir/StructureDefinition/sfm-indicator-patient-pid-extension"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Basic.extension:events",
        "path": "Basic.extension",
        "sliceName": "events",
        "short": "Indicator event types",
        "definition": "The type(s) of events that triggered this indicator. Multiple events can be associated with a single indicator.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://ehelse.no/fhir/StructureDefinition/sfm-indicator-events-extension"
            ]
          }
        ]
      },
      {
        "id": "Basic.code",
        "path": "Basic.code",
        "fixedCodeableConcept": {
          "coding": [
            {
              "code": "Indicator"
            }
          ]
        },
        "mustSupport": true
      },
      {
        "id": "Basic.created",
        "path": "Basic.created",
        "short": "When created",
        "definition": "Identifies when the resource was first created."
      }
    ]
  }
}