{
  "opencollection": "1.0.0",
  "info": {
    "name": "Canvas Medical FHIR AllergyIntolerance Patient API",
    "version": "4.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "client_credentials",
      "accessTokenUrl": "https://{canvas-instance}.canvasmedical.com/auth/token/",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Patient",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Search Patients",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://fumage-{canvas-instance}.canvasmedical.com/Patient",
            "params": [
              {
                "name": "name",
                "value": "",
                "type": "query",
                "description": "Search by patient name (family or given)"
              },
              {
                "name": "family",
                "value": "",
                "type": "query"
              },
              {
                "name": "given",
                "value": "",
                "type": "query"
              },
              {
                "name": "birthdate",
                "value": "",
                "type": "query"
              },
              {
                "name": "gender",
                "value": "",
                "type": "query"
              },
              {
                "name": "identifier",
                "value": "",
                "type": "query",
                "description": "Search by identifier (system|value)"
              },
              {
                "name": "_count",
                "value": "",
                "type": "query",
                "description": "Maximum number of results per page"
              },
              {
                "name": "_page_token",
                "value": "",
                "type": "query",
                "description": "Pagination token for next page"
              }
            ]
          },
          "docs": "Search for patient records. Supports search by name, birthdate, identifier, gender, and more."
        },
        {
          "info": {
            "name": "Create Patient",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://fumage-{canvas-instance}.canvasmedical.com/Patient",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a new patient record in Canvas Medical"
        },
        {
          "info": {
            "name": "Read Patient",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://fumage-{canvas-instance}.canvasmedical.com/Patient/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Logical ID of the FHIR resource"
              }
            ]
          },
          "docs": "Retrieve a specific patient by their logical ID"
        },
        {
          "info": {
            "name": "Update Patient",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://fumage-{canvas-instance}.canvasmedical.com/Patient/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Logical ID of the FHIR resource"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update an existing patient record"
        }
      ]
    }
  ],
  "bundled": true
}