{
  "resourceType": "Bundle",
  "id": "9fa8335a-8502-4542-a678-16a87e95941a",
  "meta": {
    "profile": [
      "http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/bundle|1.0.0"
    ]
  },
  "type": "message",
  "timestamp": "2026-10-30T21:17:46.053+03:00",
  "entry": [
    {
      "fullUrl": "http://nphies.sa/MessageHeader/08de9e6b-287c-4e28-ac90-dc4b69e199ce",
      "resource": {
        "resourceType": "MessageHeader",
        "id": "08de9e6b-287c-4e28-ac90-dc4b69e199ce",
        "meta": {
          "profile": [
            "http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/message-header|1.0.0"
          ],
          "tag": [
            {
              "system": "http://nphies.sa/terminology/CodeSystem/meta-tags",
              "code": "queued-messages"
            }
          ]
        },
        "eventCoding": {
          "system": "http://nphies.sa/terminology/CodeSystem/ksa-message-events",
          "code": "poll-response"
        },
        "destination": [
          {
            "endpoint": "http://nphies.sa/license/provider-license/10000300062591",
            "receiver": {
              "type": "Organization",
              "identifier": {
                "system": "http://nphies.sa/license/provider-license",
                "value": "10000300062591"
              }
            }
          }
        ],
        "sender": {
          "type": "Organization",
          "identifier": {
            "system": "http://nphies.sa/license/nphies",
            "value": "NPHIES"
          }
        },
        "source": {
          "endpoint": "http://nphies.sa/"
        },
        "response": {
          "identifier": "80cde6a7-00c2-40d9-a4bb-78e94fcf2cc7",
          "code": "ok"
        }
      }
    },
    {
      "fullUrl": "http://nphies.sa/Task/a9ad147a-3e9f-476a-9b9b-3ef0498778b8",
      "resource": {
        "resourceType": "Task",
        "id": "a9ad147a-3e9f-476a-9b9b-3ef0498778b8",
        "meta": {
          "profile": [
            "http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/task|1.0.0"
          ],
          "tag": [
            {
              "code": "NPHIES generated",
              "display": "NPHIES generated"
            }
          ]
        },
        "identifier": [
          {
            "system": "http://www.ALKholood.com/Task",
            "value": "765"
          }
        ],
        "status": "completed",
        "intent": "order",
        "priority": "stat",
        "code": {
          "coding": [
            {
              "system": "http://nphies.sa/terminology/CodeSystem/task-code",
              "code": "poll"
            }
          ]
        },
        "authoredOn": "2026-09-30",
        "lastModified": "2026-10-30",
        "requester": {
          "reference": "Organization/9"
        },
        "owner": {
          "identifier": {
            "system": "http://nphies.sa/license/nphies",
            "value": "NPHIES"
          }
        },
        "input": [
          {
            "type": {
              "coding": [
                {
                  "system": "http://nphies.sa/terminology/CodeSystem/task-input-type",
                  "code": "include-message-type"
                }
              ]
            },
            "valueCode": "priorauth-response"
          },
          {
            "type": {
              "coding": [
                {
                  "system": "http://nphies.sa/terminology/CodeSystem/task-input-type",
                  "code": "period"
                }
              ]
            },
            "valuePeriod": {
              "start": "2026-09-30T00:00:00.000+03:00",
              "end": "2026-10-30T23:59:59.999+03:00"
            }
          },
          {
            "type": {
              "coding": [
                {
                  "system": "http://nphies.sa/terminology/CodeSystem/task-input-type",
                  "code": "count"
                }
              ]
            },
            "valuePositiveInt": 10
          }
        ]
      }
    },
    {
      "fullUrl": "http://www.ALKholood.com/Organization/9",
      "resource": {
        "resourceType": "Organization",
        "id": "9",
        "meta": {
          "profile": [
            "http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/provider-organization|1.0.0"
          ]
        },
        "extension": [
          {
            "url": "http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/extension-provider-type",
            "valueCodeableConcept": {
              "coding": [
                {
                  "system": "http://nphies.sa/terminology/CodeSystem/provider-type",
                  "code": "5",
                  "display": "Clinic"
                }
              ]
            }
          }
        ],
        "identifier": [
          {
            "use": "official",
            "system": "http://nphies.sa/license/provider-license",
            "value": "10000300062591"
          }
        ],
        "active": true,
        "type": [
          {
            "coding": [
              {
                "system": "http://nphies.sa/terminology/CodeSystem/organization-type",
                "code": "prov"
              }
            ]
          }
        ],
        "name": "Al-Kholood Medical Company - AlHaj"
      }
    }
  ]
}