...
Medication scheme
Read a medication scheme
The web service getTransactionList needs to be called in order to retrieve the id for the transaction MS.
A succesfull response will contain:
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"/>
<soap:Body>
<ns3:GetTransactionListResponse xmlns="http://www.ehealth.fgov.be/hubservices/core/v3" xmlns:ns10="urn:be:fgov:ehealth:metahub:protocol:v2" xmlns:ns2="http://www.ehealth.fgov.be/standards/kmehr/schema/v1" xmlns:ns3="http://www.ehealth.fgov.be/hubservices/protocol/v3" xmlns:ns4="urn:be:fgov:ehealth:metahub:core:v2" xmlns:ns5="http://www.w3.org/2001/04/xmlenc#" xmlns:ns6="http://www.w3.org/2000/09/xmldsig#" xmlns:ns7="urn:be:fgov:ehealth:safe:internal:v3" xmlns:ns8="urn:be:fgov:ehealth:safe:common:decryptor:v3" xmlns:ns9="urn:be:fgov:ehealth:safe:common:v3">
<response>
...
</response>
<acknowledge>
...
</acknowledge>
<kmehrheader>
<folder>
<patient>
...
</patient>
<transaction>
<id S="ID-KMEHR" SV="1.0">1</id>
<id S="LOCAL" SL="vitalinkuri" SV="1.0">/subject/72071135503/medication-scheme</id>
<cd S="CD-TRANSACTION" SV="1.6">medicationscheme</cd>
<cd S="CD-HUBSERVICE" SV="1.0">GetTransactionSet</cd>
<date>2018-02-07</date>
<time>14:52:07</time>
<author>
...
</author>
<iscomplete>true</iscomplete>
<isvalidated>true</isvalidated>
<recorddatetime>2018-02-07T14:52:07+01:00</recorddatetime>
</transaction>
</folder>
</kmehrheader>
</ns3:GetTransactionListResponse>
</soap:Body>
</soap:Envelope> |
Reading the medication scheme is parsing the response of a getTransactionSet for a specific patient and the transaction MS.
Some Kmehr elements have a meaning in the context of future manipulation of the medication scheme:
Transaction | Element | Meaning | Store for later use? | Extra information |
---|---|---|---|---|
MS | <id> | S="ID-Kmehr": this is a unique identifier for the transaction within the transactionset | NO | |
S="LOCAL", SL="" | ||||
Update a medication scheme
...