{
  "resourceType": "StructureDefinition",
  "url": "https://example.org/fhir/StructureDefinition/MyFlag",
  "name": "Flag",
  "status": "draft",
  "date": "2023-01-12T04:44:15.9579632+00:00",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Flag",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Flag",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Flag.identifier",
        "path": "Flag.identifier",
        "definition": "NOT USED. Business identifiers assigned to this flag by the performer or other systems which remain constant as the resource is updated and propagates from server to server."
      },
      {
        "id": "Flag.status",
        "path": "Flag.status",
        "definition": "Supports basic workflow.\r\nThe value from the Flag.status will be ignored while processing and inserting/updating the alert details into i.PM.\r\nThe value from the Flag.period element will be processed and inserted/updated as the alert start and end date in i.PM.",
        "fixedCode": "active"
      },
      {
        "id": "Flag.category",
        "path": "Flag.category",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Flag.category.coding.code",
        "path": "Flag.category.coding.code",
        "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination). ***Alert category received in the Flag.category element must be matched to an existing reference value identifier in reference value domain CCSXT in i.PM where RITYP_CODE = FHIR or PIMS.***",
        "min": 1
      },
      {
        "id": "Flag.code.coding.code",
        "path": "Flag.code.coding.code",
        "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination). ***Alert code received in the Flag.code.coding.code element must be matched to an existing alert code in i.PM in ODPCD_CODES.CODE and belonging to the alert category provided in Flag.category***",
        "min": 1
      },
      {
        "id": "Flag.subject.reference",
        "path": "Flag.subject.reference",
        "short": "/Patient/?identifier=[PASID]",
        "min": 1
      },
      {
        "id": "Flag.subject.identifier.value",
        "path": "Flag.subject.identifier.value",
        "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system. ***PASID from the patients t"
      },
      {
        "id": "Flag.period.start",
        "path": "Flag.period.start",
        "short": "DIAGNOSIS_PROCEDURES.START_DTTM",
        "definition": "The start of the period. The boundary is inclusive. ***The patient alert’s start date.***",
        "min": 1
      },
      {
        "id": "Flag.period.end",
        "path": "Flag.period.end",
        "label": "alert end date",
        "definition": "The end of the period. If the end of the period is missing, it means no end was known or planned at the time the instance was created. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time..***The patient alert’s end date ***"
      },
      {
        "id": "Flag.encounter",
        "path": "Flag.encounter",
        "definition": "This alert is only relevant during the encounter. ***Not used**"
      }
    ]
  }
}