Inserting openEHR Data
Inserting openEHR data with SQL INSERT statement:
Querying openEHR data
Since ArcEHR maps openEHR Reference Model (RM) to the graph database, we can use graph traversal to query the openEHR data. The data stored in the graph database is much more efficient than the relational database. No joins are needed to retrieve the data. We use out('openEHR-EHR-OBSERVATION.blood_pressure.v2') to get all the blood pressure records for a given COMPOSITION or EHR.
Inserting openEHR Data with SQL in TypeScript
We use the pg library to connect to the database:
Querying openEHR data with SQL in TypeScript
Select blood pressure