Health Gorilla · Arazzo Workflow

Health Gorilla FHIR Lab Order

Version 1.0.0

Confirm server capabilities, locate a patient, then place a laboratory order as a ServiceRequest grouped inside a RequestGroup.

1 workflow 4 source APIs 1 provider
View Spec View on GitHub HealthInteroperabilityFHIRClinical DataLab OrderingTEFCAQHINHealth Information ExchangeLab ResultsClinical DocumentsSMART on FHIRPatient RecordsHL7ArazzoWorkflows

Provider

health-gorilla

Workflows

lab-order
Place a lab order by creating a ServiceRequest and submitting a RequestGroup for a matched patient.
Discovers capabilities, finds the patient by date of birth, creates the ServiceRequest lab order, submits the RequestGroup, and reads the group back to confirm submission.
5 steps inputs: birthdate, requestGroup, serviceRequest outputs: patientId, requestGroup, requestGroupId, serviceRequestId
1
discoverCapabilities
Fetch the FHIR CapabilityStatement to confirm supported resources and endpoints.
2
findPatient
Locate the patient by date of birth.
3
createOrder
Create the ServiceRequest that places the laboratory order.
4
submitRequestGroup
Submit the RequestGroup that binds the lab order for processing.
5
confirmGroup
Read the submitted RequestGroup by id to confirm it was accepted.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Health Gorilla FHIR Lab Order
  summary: Confirm server capabilities, locate a patient, then place a laboratory order as a ServiceRequest grouped inside a RequestGroup.
  description: >-
    A FHIR R4 laboratory ordering flow against the Health Gorilla clinical and
    lab network API. The CapabilityStatement is fetched first to confirm
    supported resources, the patient is located by demographics, a ServiceRequest
    is created to describe the lab order, and a RequestGroup is submitted to bind
    the order before it is read back for confirmation. This mirrors the US Core
    ServiceRequest and order-placement pattern over the /fhir/R4 server base.
    Every step inlines its request so the flow is self-contained.
  version: 1.0.0
  x-realizes-capability-ids:
  - BC-2860
  - BC-2900.60
  x-capability-derivation:
    method: 'deterministic join: sourceDescriptions -> per-tag OpenAPI -> tag/capability edge. No classification at this step.'
    min_confidence: 0.7
    sources:
    - capability_id: BC-2860
      capability_name: Diagnostic Services Management
      spec: health-gorilla-requestgroup-api-openapi.yml
      confidence: 0.7
    - capability_id: BC-2900.60
      capability_name: Healthcare Interoperability Operations
      spec: health-gorilla-patient-api-openapi.yml
      confidence: 0.7
    model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: capabilitystatementApi
  url: ../openapi/health-gorilla-capabilitystatement-api-openapi.yml
  type: openapi
- name: patientApi
  url: ../openapi/health-gorilla-patient-api-openapi.yml
  type: openapi
- name: requestgroupApi
  url: ../openapi/health-gorilla-requestgroup-api-openapi.yml
  type: openapi
- name: servicerequestApi
  url: ../openapi/health-gorilla-servicerequest-api-openapi.yml
  type: openapi
workflows:
- workflowId: lab-order
  summary: Place a lab order by creating a ServiceRequest and submitting a RequestGroup for a matched patient.
  description: >-
    Discovers capabilities, finds the patient by date of birth, creates the
    ServiceRequest lab order, submits the RequestGroup, and reads the group back
    to confirm submission.
  inputs:
    type: object
    required:
    - birthdate
    - serviceRequest
    - requestGroup
    properties:
      birthdate:
        type: string
        description: Patient date of birth (YYYY-MM-DD) to locate the order subject.
      serviceRequest:
        type: object
        description: The FHIR R4 ServiceRequest resource describing the laboratory order.
      requestGroup:
        type: object
        description: The FHIR R4 RequestGroup resource that binds the order for submission.
  steps:
  - stepId: discoverCapabilities
    description: Fetch the FHIR CapabilityStatement to confirm supported resources and endpoints.
    operationId: getCapabilityStatement
    successCriteria:
    - condition: $statusCode == 200
  - stepId: findPatient
    description: Locate the patient by date of birth.
    operationId: searchPatients
    parameters:
    - name: birthdate
      in: query
      value: $inputs.birthdate
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      patientId: $response.body#/entry/0/resource/id
  - stepId: createOrder
    description: Create the ServiceRequest that places the laboratory order.
    operationId: createServiceRequest
    requestBody:
      contentType: application/fhir+json
      payload: $inputs.serviceRequest
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      serviceRequestId: $response.body#/id
  - stepId: submitRequestGroup
    description: Submit the RequestGroup that binds the lab order for processing.
    operationId: createRequestGroup
    requestBody:
      contentType: application/fhir+json
      payload: $inputs.requestGroup
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      requestGroupId: $response.body#/id
  - stepId: confirmGroup
    description: Read the submitted RequestGroup by id to confirm it was accepted.
    operationId: readRequestGroup
    parameters:
    - name: id
      in: path
      value: $steps.submitRequestGroup.outputs.requestGroupId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      requestGroup: $response.body
  outputs:
    patientId: $steps.findPatient.outputs.patientId
    serviceRequestId: $steps.createOrder.outputs.serviceRequestId
    requestGroupId: $steps.submitRequestGroup.outputs.requestGroupId
    requestGroup: $steps.confirmGroup.outputs.requestGroup

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/health-gorilla-lab-order-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.