{
  "resourceType": "Bundle",
  "id": "5feb26cc-82c9-4ec3-9f34-aebc7e340472",
  "meta": {
    "profile": [
      "http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/bundle|1.0.0"
    ]
  },
  "type": "message",
  "timestamp": "2026-10-31T15:12:29.247+03:00",
  "entry": [
    {
      "fullUrl": "http://nphies.sa/MessageHeader/df1b8e80-4b30-4475-b425-a168e7eb7320",
      "resource": {
        "resourceType": "MessageHeader",
        "id": "df1b8e80-4b30-4475-b425-a168e7eb7320",
        "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": "947a5c2b-cf10-4cc9-a2f4-c6f7fc2ade1f",
          "code": "ok"
        }
      }
    },
    {
      "fullUrl": "http://nphies.sa/Task/d5e68a8a-39cf-423d-bb92-e05680fa2a85",
      "resource": {
        "resourceType": "Task",
        "id": "d5e68a8a-39cf-423d-bb92-e05680fa2a85",
        "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": "405"
          }
        ],
        "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-31",
        "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-31T23: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"
      }
    }
  ]
}