Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EtherCIS Events need hooking up by Rob Tweed #2

Open
PhilBarrett opened this issue Jun 15, 2017 · 7 comments
Open

EtherCIS Events need hooking up by Rob Tweed #2

PhilBarrett opened this issue Jun 15, 2017 · 7 comments
Assignees

Comments

@PhilBarrett
Copy link
Member

No description provided.

@PhilBarrett
Copy link
Member Author

@robtweed - please could you provide an update on this, cheers.

@robtweed
Copy link

Talked to Ian on Friday who will be discussing in more detail with Tony, as it's still not clear how this will need to work, in particular with respect to the current use of Appointments for triggering the WebRTC telemedicine - and it should be noted that those Appointment postings only currently work against Marand

@tony-shannon
Copy link
Member

Have spoken to @freshehr who is getting on with fairly simple solution to this. should be ready to go asap

@freshehr
Copy link
Collaborator

Heading

Events

Version:

1.0.0
1.0.1
added event Time to AQL and composition sample

05-Jun-2017

TemplateID:

IDCR - Service tracker.v0

Summary AQL /query:

To populate the list of items when the heading is selected.

select
    a/uid/value as uid,
    a/composer/name as author,
    a/context/start_time/value as date_created,
    b_a/description[at0001]/items[at0011]/value/value as eventName,
    b_a/description[at0001]/items[at0014]/value/value as eventType,
    b_a/description[at0001]/items[at0013]/value/value as eventDescription,
    b_a/time as eventTime
from EHR e
contains COMPOSITION a[openEHR-EHR-COMPOSITION.service_tracker.v0]
contains ACTION b_a[openEHR-EHR-ACTION.service.v0]
where a/name/value='Service tracker'

Detail AQL /query:

To populate the detailed view / edit when a single record within the heading is selected.

As above

Sample Composition(FLAT JSON) for POST/PUT /composition:

To create or update a composition for a single item via the /composition Ehrscape API call.

{
    "ctx/language": "en",
    "ctx/territory": "GB",
    "ctx/composer_name": "Dr Rory Best",
    "ctx/time": "2017-06-05T10:50:20.958Z",
    "ctx/id_namespace": "Ripple",
    "ctx/id_scheme": "Ripple",
    "ctx/health_care_facility|name": "Ripple General",
    "ctx/health_care_facility|id": "9091",
    "service_tracker/service:0/ism_transition/current_state|code": "526",
    "service_tracker/service:0/ism_transition/current_state|value": "planned",
    "service_tracker/service:0/service_name": "Event_name",
    "service_tracker/service:0/service_type": "Event_type",
    "service_tracker/service:0/description": "Notes",
    "service_tracker/service:0/time":"2017-06-05T10:50:20.958Z"
}

Notes:

{
    //Boilerplate
    "ctx/language": "en",
    //Boilerplate
    "ctx/territory": "GB",
    //author name
    "ctx/composer_name": "Dr Rory Best",
    //document commit time
    "ctx/time": "2017-06-05T10:50:20.958Z",
    //Boilerplate
    "ctx/id_namespace": "Ripple",
    //Boilerplate
    "ctx/id_scheme": "Ripple",
    //Boilerplate
    "ctx/health_care_facility|name": "Ripple General",
    //Boilerplate
    "ctx/health_care_facility|id": "9091",
    //Boilerplate
    "service_tracker/service:0/ism_transition/current_state|code": "526",
    //Boilerplate
    "service_tracker/service:0/ism_transition/current_state|value": "planned",
    //Event name
    "service_tracker/service:0/service_name": "Event_name",
    //Event type
    "service_tracker/service:0/service_type": "Event_type",
    //Notes
    "service_tracker/service:0/description": "Notes",
    //Event time
    "service_tracker/service:0/time":"2017-06-05T10:50:20.958Z"
}

@tony-shannon
Copy link
Member

thanks @freshehr
Again just keen to ensure these work before closing them off

@robtweed can you update here when this is working please?
thanks

@freshehr
Copy link
Collaborator

freshehr commented Nov 6, 2017

As far as I know this is working and can be closed off

@tony-shannon
Copy link
Member

ok thanks Ian

@robtweed can you update here when this is working please?

thanks
T

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants