{
  "opencollection": "1.0.0",
  "info": {
    "name": "Orion Health FHIR Alerts Patient API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "authorization_code",
      "authorizationUrl": "https://auth.orionhealth.com/oauth2/authorize",
      "accessTokenUrl": "https://auth.orionhealth.com/oauth2/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Patient",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Orion Health Search for patients",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.orionhealth.com/fhir/Patient",
            "params": [
              {
                "name": "_format",
                "value": "",
                "type": "query",
                "description": "Response format"
              },
              {
                "name": "_count",
                "value": "",
                "type": "query",
                "description": "Maximum number of results per page"
              },
              {
                "name": "_offset",
                "value": "",
                "type": "query",
                "description": "Starting offset for paging"
              },
              {
                "name": "_id",
                "value": "",
                "type": "query",
                "description": "Logical ID of the patient resource"
              },
              {
                "name": "identifier",
                "value": "",
                "type": "query",
                "description": "Patient identifier (e.g., MRN, SSN) in format system|value"
              },
              {
                "name": "family",
                "value": "",
                "type": "query",
                "description": "Family (last) name of the patient"
              },
              {
                "name": "given",
                "value": "",
                "type": "query",
                "description": "Given (first) name of the patient"
              },
              {
                "name": "name",
                "value": "",
                "type": "query",
                "description": "Any part of the patient name"
              },
              {
                "name": "birthdate",
                "value": "",
                "type": "query",
                "description": "Patient date of birth (YYYY-MM-DD)"
              },
              {
                "name": "gender",
                "value": "",
                "type": "query",
                "description": "Patient gender"
              },
              {
                "name": "address",
                "value": "",
                "type": "query",
                "description": "Any part of the patient address"
              },
              {
                "name": "telecom",
                "value": "",
                "type": "query",
                "description": "Patient phone number or email"
              }
            ]
          },
          "docs": "Search for Patient resources using standard FHIR search parameters including name, identifier, birthdate, gender, and address."
        },
        {
          "info": {
            "name": "Orion Health Create a new patient",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.orionhealth.com/fhir/Patient",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a new Patient resource on the server."
        },
        {
          "info": {
            "name": "Orion Health Read a patient by ID",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.orionhealth.com/fhir/Patient/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Logical ID of the FHIR resource"
              },
              {
                "name": "_format",
                "value": "",
                "type": "query",
                "description": "Response format"
              }
            ]
          },
          "docs": "Retrieve a specific Patient resource by its logical ID."
        },
        {
          "info": {
            "name": "Orion Health Update a patient",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.orionhealth.com/fhir/Patient/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Logical ID of the FHIR resource"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update an existing Patient resource by its logical ID."
        },
        {
          "info": {
            "name": "Orion Health Get patient version history",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.orionhealth.com/fhir/Patient/:id/_history",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Logical ID of the FHIR resource"
              },
              {
                "name": "_count",
                "value": "",
                "type": "query",
                "description": "Maximum number of results per page"
              }
            ]
          },
          "docs": "Retrieve the version history of a specific Patient resource."
        }
      ]
    }
  ],
  "bundled": true
}