{
  "opencollection": "1.0.0",
  "info": {
    "name": "Meditech Expanse FHIR R4 Allergy Observation API",
    "version": "4.0.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "authorization_code",
      "authorizationUrl": "https://yourhospital.meditech.com/oauth/authorize",
      "accessTokenUrl": "https://yourhospital.meditech.com/oauth/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Observation",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get patient observations (vital signs, lab results)",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{facility}.meditech.com/fhir/r4/Patient/:id/Observation",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              },
              {
                "name": "category",
                "value": "",
                "type": "query",
                "description": "Filter by category (vital-signs, laboratory, imaging, etc.)"
              },
              {
                "name": "code",
                "value": "",
                "type": "query",
                "description": "LOINC code filter"
              },
              {
                "name": "date",
                "value": "",
                "type": "query",
                "description": "Date range (e.g., date=ge2024-01-01&date=le2024-12-31)"
              },
              {
                "name": "_count",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Retrieve clinical observations for a patient including vital signs, laboratory results, and other measurements."
        }
      ]
    }
  ],
  "bundled": true
}