Patient $summary in PS-CA
Patient $summary can return the pan-Canadian Patient Summary (PS-CA) instead of the
International Patient Summary. OpenOrchid builds it against PS-CA ca.infoway.io.psca 2.3.0-ti-ballot.
Asking for it
Pass the PS-CA Bundle profile as the profile parameter:
POST [base]/Patient/[id]/$summary
Content-Type: application/fhir+json
{
"resourceType": "Parameters",
"parameter": [
{ "name": "profile", "valueCanonical": "http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/bundle-ca-ps" }
]
}
You can add a version: the version the PS-CA profiles carry, ...bundle-ca-ps|2.2.0, or the package's,
...bundle-ca-ps|2.3.0-ti-ballot. The server holds one PS-CA release at a time, so any other version, or any other
profile, returns 400 Bad Request. The one exception is the IPS Bundle profile,
http://hl7.org/fhir/uv/ips/StructureDefinition/Bundle-uv-ips, which returns the international summary.
The PS-CA profiles are read from the server. The caller's project must be linked to the shared Canadian project, which
a super admin does (see Project Linking), or the request returns
400 Bad Request naming the missing profile.
Making PS-CA a project's default
A project admin can make PS-CA the summary the project gets when no profile is passed. Add this to the Project's
setting list:
{ "name": "patientSummaryProfile", "valueString": "http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/bundle-ca-ps" }
Without the setting and without a profile parameter, $summary returns the international summary. With the
setting, a client can still ask for the international summary by passing the IPS Bundle profile. The setting applies
only to $summary, not to $ccda-export.
What the summary contains
- The Bundle claims
bundle-ca-psand is checked against it before it is returned. - The Composition claims
composition-ca-ps. The patient and the author are entries too. - The patient, and every other entry that PS-CA has a profile for, is checked against that profile. An entry that
conforms has the profile added to its
meta.profile, beside any it already claimed. A Patient that is not the subject, such as a Patient author, is not checked and claims nothing. - The medications section lists MedicationStatement as well as MedicationRequest records, when the caller's access policy allows searching MedicationStatement.
- A section with no records says "No information available" and has the empty reason
unavailable. The server cannot tell "the patient has none" from "nobody recorded any", so it never says "nil known".
These PS-CA sections are filled when the patient has matching records: medications, allergies, problems, procedures, immunizations, medical devices, results, vital signs, functional status, plan of care and social history. Past illness, pregnancy, advance directives, family history and patient story are not built yet.
When a record cannot conform
| What does not conform | What you get |
|---|---|
| A clinical record, for example a MedicationStatement with no effective date | 200 OK. The record stays in the summary and its section, without the PS-CA claim. Leaving a medication out of a summary is the worse error. |
| The patient, for example with no birth date | 400 Bad Request. The first issue says the patient does not conform; the others say why. |
| The Composition or the Bundle, which the server builds | 500 Internal Server Error, and the server logs it. |
What is checked, and what is not
The checks use the server's own profile validator. They cover which elements must be present, how many, their types, fixed values and slices. They do not check codes against value sets: PS-CA's bindings are not checked here, nor when the records are written.
The summary has also been checked with the official HL7 FHIR validator (7.0.9), on summaries with coded records, text-only records and no records: it reports no errors. That validator could not check codes from Canadian code systems (DIN, SNOMED CT CA reference sets), since the public terminology server it uses refers those to Infoway's, which needs an account.