{
  "resourceType": "StructureDefinition",
  "id": "profile-ed-flag",
  "url": "https://fhir.synapxe.sg/StructureDefinition/profile-ed-flag",
  "title": "Emergency Department Flag Profile",
  "description": "Flag profile for marking important alerts and clinical flags identified during emergency department visits.",
  "name": "Flag",
  "publisher": "Synapxe",
  "status": "active",
  "fhirVersion": "5.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "Flag",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Flag",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Flag",
        "path": "Flag",
        "definition": "Carries these NEHR XML elements of putEDNotes:\n\n- `content/Patient/EdAlert`: Alerts that require special consideration in the delivery of care.\n- `content/Patient/CmisAlert`: Alerts from CMIS that require special clinical attention."
      },
      {
        "id": "Flag.extension:artifactDescription",
        "path": "Flag.extension",
        "sliceName": "artifactDescription",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/artifact-description"
            ]
          }
        ]
      },
      {
        "id": "Flag.identifier",
        "path": "Flag.identifier",
        "max": "0"
      },
      {
        "id": "Flag.status",
        "path": "Flag.status",
        "patternCode": "active"
      },
      {
        "id": "Flag.category",
        "path": "Flag.category",
        "max": "0"
      },
      {
        "id": "Flag.code.coding.code",
        "path": "Flag.code.coding.code",
        "definition": "Alert code."
      },
      {
        "id": "Flag.code.text",
        "path": "Flag.code.text",
        "definition": "Alert description."
      },
      {
        "id": "Flag.subject",
        "path": "Flag.subject",
        "short": "A reference from one resource to another",
        "definition": "A reference from one resource to another.",
        "type": [
          {
            "code": "Reference",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-reference-patient"
            ],
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-patient"
            ]
          }
        ]
      },
      {
        "id": "Flag.period",
        "path": "Flag.period",
        "max": "0"
      },
      {
        "id": "Flag.encounter",
        "path": "Flag.encounter",
        "max": "0"
      },
      {
        "id": "Flag.author",
        "path": "Flag.author",
        "max": "0"
      }
    ]
  }
}