Patient Summary in PS-CA

Patient Summary in PS-CA​

A patient summary is a short document with a patient's medications, allergies, problems and other key facts, for another clinician. OpenOrchid can produce it in the pan-Canadian format, PS-CA (ca.infoway.io.psca 2.3.0-ti-ballot).

curl -X POST 'https://api.openorchid.ca/fhir/R4/Patient/<patient id>/$summary' \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H 'Content-Type: application/fhir+json' \
  -d '{
    "resourceType": "Parameters",
    "parameter": [
      { "name": "profile", "valueCanonical": "http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/bundle-ca-ps" }
    ]
  }'

The answer is a document Bundle that claims bundle-ca-ps. Its first entry is the Composition, whose sections list the records, and each record that conforms to its PS-CA profile claims it:

{
  "resourceType": "Bundle",
  "meta": { "profile": ["http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/bundle-ca-ps"] },
  "type": "document",
  "entry": [
    { "resource": { "resourceType": "Composition", "meta": { "profile": [".../composition-ca-ps"] } /* ... */ } },
    { "resource": { "resourceType": "Patient", "meta": { "profile": [".../patient-ca-ps"] } /* ... */ } },
    { "resource": { "resourceType": "AllergyIntolerance", "meta": { "profile": [".../allergyintolerance-ca-ps"] } /* ... */ } }
    // ...
  ]
}

A project admin can make PS-CA the project's default summary, so no profile parameter is needed. A record that cannot conform stays in the summary without the claim, and a patient who cannot conform, such as one with no birth date, gets 400 Bad Request with the reasons. Patient $summary in PS-CA covers these and the sections in full.

The summaries were also checked with the official HL7 FHIR validator (7.0.9), which reports no errors. It could not check codes from Canadian code systems (DIN, SNOMED CT CA reference sets).