Site Tools


4smicroservices:obsinputservice

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:obsinputservice [2017/03/14 09:16]
toby [Observation Input Service]
4smicroservices:obsinputservice [2017/03/14 10:22]
toby
Line 3: Line 3:
 The Observation Input Service exposes a RESTful interface through which it is able to receive FHIR Observation resources. The service forwards the FHIR Observation resource itself (JSON encoded) to a Kafka topic called ''​observation''​. The Observation Input Service exposes a RESTful interface through which it is able to receive FHIR Observation resources. The service forwards the FHIR Observation resource itself (JSON encoded) to a Kafka topic called ''​observation''​.
  
 +===== Project status =====
 +4S maturity level: Prototyping
  
 +===== Documentation =====
 +  * [[4smicroservices:​overview|Documentation on the 4S microservice infrastructure]]
 +  * [[https://​bitbucket.org/​4s/​patient-service|Build run and test instructions]]
  
-===== Get the source ​code =====+==== Service RESTful API ==== 
 +The Observation Input Service exposes a HL7 FHIR RESTful interface for [[https://​www.hl7.org/​fhir/​http.html#​create|creating]] [[https://​www.hl7.org/​fhir/​observation.html|FHIR Observation resources]]. 
 + 
 +[[4smicroservices:​obsinputservice:​conformance|Observation Input Service FHIR API (conformance statement)]] 
 + 
 +FHIR Observation resources can be posted at '/​Observation'​. //​Example://​ 
 + 
 +<​code>​ 
 +curl --request POST \ 
 +  --url http://​localhost:​8087/​Observation \ 
 +  --header '​cache-control:​ no-cache'​ \ 
 +  --header '​content-type:​ application/​json'​ \ 
 +  --header '​postman-token:​ c1ef3c51-d69c-d70f-9d5b-41fa30289191'​ \ 
 +  --data '​{ ​ "​resourceType":​ "​Observation", ​ "​identifier":​ [    {      "​type":​ {        "​text":​ "PHMR id" ​     },      "​system":​ "​urn:​oid:​1.2.208.184", ​     "​value":​ "​b6a079b0-89ab-11e3-baa8-0800200c9a66" ​   }  ],  "​status":​ "​final", ​ "​category":​ {    "​coding":​ [      {        "​system":​ "​http://​hl7.org/​fhir/​observation-category", ​       "​code":​ "​vital-signs", ​       "​display":​ "Vital Signs" ​     }    ]  },  "​code":​ {    "​coding":​ [      {        "​system":​ "​urn:​oid:​1.2.208.176.2.1", ​       "​code":​ "​NPU21692", ​       "​display":​ "​Puls;​Hjerte" ​     }    ]  },  "​subject":​ {    "​reference":​ "​http://​localhost:​8081/​Patient/​52" ​ },  "​effectiveDateTime":​ "​2017-01-17T09:​20:​30+01:​00", ​ "​valueQuantity":​ {    "​value":​ "​80.0", ​   "​unit":​ "× 1/​min", ​   "​system":​ "​urn:​oid:​1.2.208.176.2.1", ​   "​code":​ "​NPU21692" ​ }}' 
 +</​code>​ 
 + 
 +==== Service Messaging ==== 
 +__Kafka producer___ 
 +  * Topic: observation 
 +  * Payload: [[https://​www.hl7.org/​fhir/​observation.html|HL7 FHIR Observation resource]] in JSON format 
 + 
 +===== Source ​code =====
  
 From 4S bitbucket: https://​bitbucket.org/​4s/​obs-input-service From 4S bitbucket: https://​bitbucket.org/​4s/​obs-input-service
 +
 +===== Issue Tracking =====
 +[[https://​issuetracker4s.atlassian.net/​browse/​SEC|Issue tracking for the 4S Microservices project]]
 +
 +===== License =====
 +The Observation Input Service source code is licensed under the [[http://​www.apache.org/​licenses/​LICENSE-2.0|Apache 2.0 license]].
4smicroservices/obsinputservice.txt · Last modified: 2018/12/12 13:27 (external edit)