{
  "info": {
    "_postman_id": "cf50cb70-061f-4942-9653-4f80bbc6fb82",
    "name": "FHIR R4 REST API",
    "description": "HL7 FHIR R4 RESTful API served from the APEX Nexus gateway and FHIR Data Lake.\nSupports SMART on FHIR OAuth 2.0, bulk $export, and 300+ resource types.\n",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{access_token}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "base_url",
      "value": "https://api.parkerapex.com/fhir/R4",
      "type": "string"
    },
    {
      "key": "access_token",
      "value": "REPLACE_WITH_TOKEN",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "Conformance",
      "item": [
        {
          "name": "CapabilityStatement",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}/metadata",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "metadata"
              ]
            },
            "description": "FHIR conformance metadata \u2014 supported resource types, interactions, and search parameters."
          }
        }
      ]
    },
    {
      "name": "SMART",
      "item": [
        {
          "name": "SMART on FHIR configuration",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}/.well-known/smart-configuration",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                ".well-known",
                "smart-configuration"
              ]
            },
            "description": "OAuth authorization and token endpoints, supported scopes, and launch capabilities."
          }
        }
      ]
    },
    {
      "name": "Patient",
      "item": [
        {
          "name": "Search Patients",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}/Patient",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "Patient"
              ]
            },
            "description": "Search Patient resources by name, identifier (GPID), birthdate, and other search parameters."
          }
        },
        {
          "name": "Create Patient",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}/Patient",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "Patient"
              ]
            },
            "description": "",
            "body": {
              "mode": "raw",
              "raw": "{}"
            }
          }
        },
        {
          "name": "Read Patient",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}/Patient/{id}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "Patient",
                "{id}"
              ]
            },
            "description": ""
          }
        }
      ]
    },
    {
      "name": "Observation",
      "item": [
        {
          "name": "Search Observations",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}/Observation",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "Observation"
              ]
            },
            "description": ""
          }
        }
      ]
    },
    {
      "name": "Bundle",
      "item": [
        {
          "name": "Submit FHIR Bundle",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}/",
              "host": [
                "{{base_url}}"
              ],
              "path": []
            },
            "description": "Transaction or batch Bundle for multi-resource ingest.",
            "body": {
              "mode": "raw",
              "raw": "{}"
            }
          }
        }
      ]
    },
    {
      "name": "Bulk Export",
      "item": [
        {
          "name": "Bulk Data Export",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}/$export",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "$export"
              ]
            },
            "description": "Initiate async bulk FHIR export (SMART Backend Services). Returns 202 with Content-Location polling URL."
          }
        }
      ]
    }
  ]
}