This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"archetype_node_id": "at0011", | |
"_type": "ELEMENT", | |
"name": { | |
"_type": "DV_TEXT", | |
"value": "Phenotype", | |
"mappings": [ | |
{ | |
"_type": "TERM_MAPPING", | |
"match": "=", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"templateId" : "test", | |
"semVer" : "0.1.0", | |
"version" : "2.3", | |
"defaultLanguage" : "en", | |
"languages" : [ "en" ], | |
"tree" : { | |
"id" : "test", | |
"name" : "test", | |
"localizedName" : "test", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id" : "body_weight", | |
"name" : "Body weight", | |
"localizedName" : "Body weight", | |
"rmType" : "OBSERVATION", | |
"nodeId" : "openEHR-EHR-OBSERVATION.body_weight.v2", | |
"min" : 0, | |
"max" : 1, | |
"localizedNames" : { | |
"en" : "Body weight" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"templateId" : "GW - Problem template", | |
"version" : "2.3", | |
"defaultLanguage" : "en", | |
"languages" : [ "en" ], | |
"tree" : { | |
"id" : "gw_-_problem_template", | |
"name" : "GW - Problem template", | |
"localizedName" : "GW - Problem template", | |
"rmType" : "COMPOSITION", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"_type": "COMPOSITION", | |
"name": { | |
"_type": "DV_TEXT", | |
"value": "Hospitalisation" | |
}, | |
"archetype_details": { | |
"_type": "ARCHETYPED", | |
"archetype_id": { | |
"_type": "ARCHETYPE_ID", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"resourceType": "Patient", | |
"name": [ | |
{ | |
"family": "Chalmers", | |
"use": "official", | |
"given": [ | |
"Peter", | |
"James" | |
], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## POST | |
``` | |
POST /rest/v1/composition?ehrId=7bbc1ebe-12a3-4f99-827e-86aa013e1349& templateId=RESPECT_NSS-v0& committerName=Dr Franke& format=FLAT HTTP/1.1 | |
Host: ethercis1.3-test.ripple.foundation:8080 | |
Ehr-Session: sessionId:127.0.0.1-guest-1554203965063-410850060-79 | |
Content-Type: application/json | |
{ | |
"ctx/language": "en", | |
"ctx/territory": "GB", | |
"nss_respect_form/language|code": "en", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -X POST \ | |
http://178.62.71.220:8080/rest/v1/template/ \ | |
-H 'Authorization: Basic Z3Vlc3Q6Z3Vlc3Q=' \ | |
-H 'Content-Type: application/xml' \ | |
-H 'Ehr-Session: sessionId:127.0.0.1-guest-1548250494478-1031674849-11061' \ | |
-d '<?xml version="1.0" encoding="utf-8"?> | |
<!--Operational template XML automatically generated by Ocean Template Designer Version 2.8.94Beta--> | |
<template xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.openehr.org/v1"> | |
<language> | |
<terminology_id> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<v1:composition archetype_node_id="openEHR-EHR-COMPOSITION.hospitalisation.v1" xmlns:v1="http://schemas.openehr.org/v1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<v1:name> | |
<v1:value>Hospitalisation</v1:value> | |
</v1:name> | |
<v1:archetype_details> | |
<v1:archetype_id> | |
<v1:value>openEHR-EHR-COMPOSITION.hospitalisation.v1</v1:value> | |
</v1:archetype_id> | |
<v1:template_id> | |
<v1:value>hospitalization_oceanehr</v1:value> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 2. Getting connected to the CDR | |
In this section we will just ensure that we can connect to an openEHR CDR, retreive a session token, and run a simple call to retreive a list of the loaded templates, to check that we are all setup correctly. | |
## A. General setup | |
We now need access to an openEHR CDR, currently Marand Think!Ehr or Ripple Ethercis are supported, and the following information... | |
1. baseUrl of the CDR | |
2. Username and Password of the CDR (Ethercis) or CDR Domain (Operino /Project on Code4Health Platform) |