Site Tools


4smicroservices:patientservice

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
4smicroservices:patientservice [2017/03/14 10:19]
toby
4smicroservices:patientservice [2018/12/12 13:27] (current)
Line 16: Line 16:
 [[4smicroservices:​patientservice:​conformance|Patient Service FHIR API (conformance statement)]] [[4smicroservices:​patientservice:​conformance|Patient Service FHIR API (conformance statement)]]
  
-FHIR Patient resources are exposed at '/​Patient'​. //Example://+FHIR Patient resources are exposed at '/​Patient'​. //Examples://
  
 <​code>​curl -i -X GET http://<​service address>/​Patient/</​code>​ <​code>​curl -i -X GET http://<​service address>/​Patient/</​code>​
  
 Retrieves a list of patient resources stored by the service. Retrieves a list of patient resources stored by the service.
 +
 +<​code>​
 +curl --request POST \
 + --url http://​localhost:​8080/​Patient \
 + ​--header '​cache-control:​ no-cache'​ \
 + ​--header '​content-type:​ application/​json'​ \
 + ​--header '​postman-token:​ 58b02d18-b2ac-1808-264d-d595478277c6'​ \
 + ​--data '{ "​resourceType":​ "​Patient",​ "​identifier":​ [ { "​system":​ "​1.2.208.176.1.2",​ "​value":​ "​2512489996",​ "​assigner":​ { "​display":​ "​CPR"​ } } ], "​active":​ true, "​name":​ [ { "​family":​ [ "​Berggren"​ ], "​given":​ [ "Nancy Ann Test" ] } ], "​telecom":​ [ { "​system":​ "​phone",​ "​value":​ "​65123456",​ "​use":​ "​work"​ }, { "​system":​ "​email",​ "​value":​ "​nab@udkantsdanmark.dk",​ "​use":​ "​home"​ } ], "​gender":​ "​female",​ "​birthDate":​ "​1948-12-25",​ "​deceasedBoolean":​ "​false",​ "​address":​ [ { "​use":​ "​home",​ "​line":​ [ "​Testpark Allé 48" ], "​city":​ "​Hillerød",​ "​postalCode":​ "​3400"​ } ]}'
 +</​code>​
 +Creates a new patient resource.
  
 __Non FHIR__: __Non FHIR__:
4smicroservices/patientservice.txt · Last modified: 2018/12/12 13:27 (external edit)