Page History
...
Code Block | ||
---|---|---|
| ||
<?xml version="1.0"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header>...</soap:Header> <soap:Body> <ns6:RegisterPatientAllergyResponse xmlns:ns2="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:ns3="http://www.w3.org/2000/09/xmldsig#" xmlns:ns4="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:ns5="http://www.medcom.dk/dgws/2006/04/dgws-1.0.xsd" xmlns:ns6="http://nsp.dk/medicationallergyservice/2018/11/21/" xmlns:ns7="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:ns8="http://nsp.dk/medicationallergyservice/allergy/2018/11/21/"> <ReplyStatus> <ns6:statusCode>Success</ns6:statusCode> <ns6:statusText>Kald til servicen var successfuld</ns6:statusText> </ReplyStatus> </ns6:RegisterPatientAllergyResponse> </soap:Body> </soap:Envelope> |
UpdatePatientAllergy
Nedenstående er et eksempel på SOAP request, der anvendes til at opdatere oplysninger. De enekelte elementer er beskrevet under snitfladebeskrivelse.
Code Block | ||
---|---|---|
| ||
<?xml version="1.0">
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>...</soap:Header>
<soap:Body>
<ns6:UpdatePatientAllergyRequest xmlns:ns2="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:ns3="http://www.w3.org/2000/09/xmldsig#" xmlns:ns4="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:ns5="http://www.medcom.dk/dgws/2006/04/dgws-1.0.xsd" xmlns:ns6="http://nsp.dk/medicationallergyservice/2018/11/21/" xmlns:ns7="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:ns8="http://nsp.dk/medicationallergyservice/allergy/2018/11/21/">
<MedicationAllergyIntoleranceReduced>
<ns8:identifier>55f27e41-dc85-4bbb-96df-38f91735b59a</ns8:identifier>
<ns8:clinicalStatus value="active"/>
<ns8:verificationStatus value="confirmed"/>
<ns8:type value="allergy"/>
<ns8:category value="medication"/>
<ns8:criticality value="low"/>
<ns8:substance>
<ns8:system>urn:oid:2.16.840.1.113883.6.73</ns8:system>
<ns8:code>2648005</ns8:code>
</ns8:substance>
<ns8:substanceDescription>2648005 description</ns8:substanceDescription>
<ns8:drugId>
<ns8:system>urn:oid:drug_id</ns8:system>
<ns8:code>228105409014</ns8:code>
</ns8:drugId>
<ns8:patient>
<ns8:system>urn:oid:1.2.208.176.1.2</ns8:system>
<ns8:code>2001211005</ns8:code>
</ns8:patient>
<ns8:onsetDateTime>2018-11-02T13:30:00.000+01:00</ns8:onsetDateTime>
<ns8:recorder>
<ns8:system>urn:oid:1.2.208.176.1.3</ns8:system>
<ns8:code>21234</ns8:code>
</ns8:recorder>
<ns8:recorderOrganization>
<ns8:system>urn:oid:1.2.208.176.1.1</ns8:system>
<ns8:code>21234567890</ns8:code>
</ns8:recorderOrganization>
<ns8:note>Oil of calamus allergy changed</ns8:note>
<ns8:reaction>
<ns8:manifestation>
<ns8:system>urn:oid:1.2.208.176.2.4.12</ns8:system>
<ns8:code>25678</ns8:code>
</ns8:manifestation>
<ns8:manifestationDescription>Severe reaction was observed for several hours updated</ns8:manifestationDescription>
<ns8:onset>2018-11-02T13:30:00.000+01:00</ns8:onset>
<ns8:severity value="moderate"/>
</ns8:reaction>
<ns8:versionId>1</ns8:versionId>
<ns8:lastUpdated>2020-01-21T10:05:18.000+01:00</ns8:lastUpdated>
</MedicationAllergyIntoleranceReduced>
</ns6:UpdatePatientAllergyRequest>
</soap:Body>
</soap:Envelope> |
Nedenstående er SOAP svar på ovenstående request når kaldet går godt.
Code Block | ||
---|---|---|
| ||
<?xml version="1.0">
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>...</soap:Header>
<soap:Body>
<ns6:UpdatePatientAllergyResponse xmlns:ns2="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:ns3="http://www.w3.org/2000/09/xmldsig#" xmlns:ns4="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:ns5="http://www.medcom.dk/dgws/2006/04/dgws-1.0.xsd" xmlns:ns6="http://nsp.dk/medicationallergyservice/2018/11/21/" xmlns:ns7="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:ns8="http://nsp.dk/medicationallergyservice/allergy/2018/11/21/">
<ReplyStatus>
<ns6:statusCode>Success</ns6:statusCode>
<ns6:statusText>Kald til servicen var successfuld</ns6:statusText>
</ReplyStatus>
</ns6:UpdatePatientAllergyResponse>
</soap:Body>
</soap:Envelope> |
GetPatientAllergyList
Nedenstående er eksempel på SOAP request, der anvende til at læse data.
...