Skip to content

API reference

Read-only, FHIR-aligned resources. Each is facility-scoped and requires a specific scope. All responses use the {data, meta, error} envelope.

Base URL & auth

Every endpoint is prefixed with https://medflo-pcc-vendor-api-eez5kqwsxa-uw.a.run.app/api/v1 and requires Authorization: Bearer <token>. Get a token from Authentication.

Resources

Common patterns

  • ListGET /…/{collection} returns a paginated array. Use ?page= and ?page_size= (default 50, max 200). Most lists also accept ?resident_id= to filter.
  • ReadGET /…/{collection}/{id} returns a single resource.
  • Pagination lives in meta.page = { page, page_size, total }.

A sample call

# Call a resource with the bearer token from the token step.
TOKEN="eyJ..."   # the access_token from /oauth/token

curl -s 'https://medflo-pcc-vendor-api-eez5kqwsxa-uw.a.run.app/api/v1/ofctx/sandbox-org-0001/sandbox-fac-0001/residents?page_size=5' \
  -H "Authorization: Bearer $TOKEN" \
  -H 'Accept: application/json'

# → { "data": [ { "resourceType": "Patient", ... } ],
#     "meta": { "page": { "page": 1, "page_size": 5, "total": ... } },
#     "error": null }