Canvas Medical · Arazzo Workflow

Canvas Medical Patient Registration (Upsert)

Version 1.0.0

Search for an existing patient by identifier and update it if found, otherwise create a new US Core Patient.

1 workflow 1 source API 1 provider
View Spec View on GitHub EHRFHIRHealthcareElectronic Health RecordsVirtual CareClinical WorkflowsPatient ManagementCare CoordinationArazzoWorkflows

Provider

canvas-medical

Workflows

patient-registration-upsert
Upsert a US Core Patient by business identifier.
Searches for a patient by identifier and branches to update the matched Patient or create a new one.
3 steps inputs: identifier, patient outputs: createdPatientId, updatedPatientId
1
findPatient
Search for an existing patient by business identifier.
2
updatePatient
Update the matched Patient resource with the supplied demographics.
3
createPatient
Create a new Patient when no existing record matched the identifier.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Canvas Medical Patient Registration (Upsert)
  summary: Search for an existing patient by identifier and update it if found, otherwise create a new US Core Patient.
  description: >-
    A patient demographic upsert against the Canvas FHIR R4 API, following US Core
    Patient conventions. The patient is searched by a business identifier (for
    example an MRN); when a match is found the existing Patient is updated, and
    when no match is found a new Patient is created. This is the standard
    deduplicating intake step at the front of most clinical integrations. Every
    step inlines its request so the flow is self-contained.
  version: 1.0.0
  x-realizes-capability-ids:
  - BC-2800.20
  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-2800.20
      capability_name: Patient Registration Management
      spec: canvas-medical-patient-api-openapi.yml
      confidence: 0.75
    model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: patientApi
  url: ../openapi/canvas-medical-patient-api-openapi.yml
  type: openapi
workflows:
- workflowId: patient-registration-upsert
  summary: Upsert a US Core Patient by business identifier.
  description: >-
    Searches for a patient by identifier and branches to update the matched
    Patient or create a new one.
  inputs:
    type: object
    required:
    - identifier
    - patient
    properties:
      identifier:
        type: string
        description: Business identifier (e.g. system|value MRN) used to detect an existing patient.
      patient:
        type: object
        description: The FHIR R4 Patient resource to create or use as the update body.
  steps:
  - stepId: findPatient
    description: Search for an existing patient by business identifier.
    operationId: searchPatient
    parameters:
    - name: identifier
      in: query
      value: $inputs.identifier
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      matchedPatientId: $response.body#/entry/0/resource/id
    onSuccess:
    - name: patientExists
      type: goto
      stepId: updatePatient
      criteria:
      - context: $response.body
        condition: $.total > 0
        type: jsonpath
    - name: patientMissing
      type: goto
      stepId: createPatient
      criteria:
      - context: $response.body
        condition: $.total == 0
        type: jsonpath
  - stepId: updatePatient
    description: Update the matched Patient resource with the supplied demographics.
    operationId: updatePatient
    parameters:
    - name: id
      in: path
      value: $steps.findPatient.outputs.matchedPatientId
    requestBody:
      contentType: application/fhir+json
      payload: $inputs.patient
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      patientId: $response.body#/id
    onSuccess:
    - name: done
      type: end
  - stepId: createPatient
    description: Create a new Patient when no existing record matched the identifier.
    operationId: createPatient
    requestBody:
      contentType: application/fhir+json
      payload: $inputs.patient
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      patientId: $response.body#/id
  outputs:
    updatedPatientId: $steps.updatePatient.outputs.patientId
    createdPatientId: $steps.createPatient.outputs.patientId

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/canvas-medical-patient-registration-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.