Skip to main content

openEHR

Category: EHR interoperability and information modelling

openEHR defines vendor-neutral clinical information models and canonical representations for electronic health records. Convert-Pheno reads the implemented EHRbase-oriented canonical composition profile and groups compositions by patient. The route is implemented and regression-tested; independent template and deployment coverage is still limited.

RoleInput
Accepted inputCanonical JSON or YAML compositions
Main outputBFF individuals or PXF
Required contextPatient identifier and administrative gender
openEHR compositions grouped by patient into normalized clinical content
Canonical compositions are grouped by patient and normalized into clinical arrays

What You Need​

Convert-Pheno accepts EHRbase-style canonical compositions as JSON or YAML, including gzip-compressed files. Input can be a patient envelope containing a compositions array, one raw composition, or multiple files supplied in one request. A mapping file is not required.

convert-pheno -iopenehr composition.json \
-obff individuals.json

Compositions for the same patient become one record. Conversion requires a stable patient identifier and administrative gender. See the openEHR recipes for PXF output.

What Is Converted​

openEHR contentMain BFF target
administrative gendersex
problems and diagnosesdiseases
laboratory results and body temperaturemeasures
symptom screeningphenotypicFeatures
proceduresinterventionsOrProcedures
medication actionstreatments

External codes are retained as CURIEs. Uncoded text receives a local openEHR: identifier when the target term requires both an identifier and a label. Source compositions are preserved under info.openehr.compositions for traceability. Use --no-source-info to omit the compositions and item-level source nodes while retaining mapped fields.

Current Boundaries​

The openEHR route currently writes BFF or PXF. It does not directly write OMOP, CSV, flattened JSON, or JSON-LD, and it does not yet map first-class Beacon biosamples. Coverage depends on the archetypes and node names represented in the implemented canonical profile.

For field-level behavior and omissions, see openEHR to BFF.