{
  "resourceType": "StructureDefinition",
  "id": "flag-patient-eu-core",
  "url": "http://hl7.eu/fhir/base/StructureDefinition/flag-patient-eu-core",
  "name": "FlagPatientEuCore",
  "title": "Flag: Patient (EU core)",
  "status": "active",
  "description": "This profile introduces essential constraints and extensions for the Flag resource - for patient related alerts - that apply across multiple use cases.\nOther specialized flag profiles may be specified in the future for other kind of subjects (e.g. related to practitioners, devices, etc.).",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Flag",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Flag",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Flag.language",
        "path": "Flag.language",
        "short": "Language of the alert content"
      },
      {
        "id": "Flag.extension",
        "path": "Flag.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        }
      },
      {
        "id": "Flag.extension:flagDetailExt",
        "path": "Flag.extension",
        "sliceName": "flagDetailExt",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/flag-detail"
            ]
          }
        ]
      },
      {
        "id": "Flag.extension:flagPriorityExt",
        "path": "Flag.extension",
        "sliceName": "flagPriorityExt",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/flag-priority"
            ]
          }
        ]
      },
      {
        "id": "Flag.extension:note",
        "path": "Flag.extension",
        "sliceName": "note",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/note"
            ]
          }
        ]
      },
      {
        "id": "Flag.extension:note.value[x].text",
        "path": "Flag.extension.value[x].text",
        "short": "Additional information about the alert"
      },
      {
        "id": "Flag.identifier",
        "path": "Flag.identifier",
        "short": "Alert business Identifier"
      },
      {
        "id": "Flag.status",
        "path": "Flag.status",
        "short": "Alert status"
      },
      {
        "id": "Flag.code",
        "path": "Flag.code",
        "short": "Coded or textual message to display to user."
      },
      {
        "id": "Flag.subject",
        "path": "Flag.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.eu/fhir/base/StructureDefinition/patient-eu-core"
            ]
          }
        ]
      },
      {
        "id": "Flag.period",
        "path": "Flag.period",
        "short": "Time period when the alert is active"
      },
      {
        "id": "Flag.author",
        "path": "Flag.author",
        "short": "Author of the alert"
      }
    ]
  }
}
