The Questionnaire Service handles HL7 FHIR Questionnaire resources and stores them in a local database. The Questionnaire Service provides a REST interface for storing and retrieving FHIR Questionnaire resources.
In the same way the service is also able to handle FHIR DocumentReference resources. This part of the service is meant for handling HL7 QFD Documents.
The service subscribes to Kafka on a specific topic in order to receive FHIR Questionnaires. When receiving a FHIR Questionnaire resource it is stored in the Questionnaire Service database. The service also writes event messages back to Kafka signifying what the type of operation was performed (e.g. “created”) and the resource, that was handled.
4S maturity level: Prototyping
Nothing is done to keep FHIR Questionnaire resources in sync with QFD Documents. In a production version questionnaires should probably only be stored in one of the two formats.
The Questionnaire Service exposes a HL7 FHIR RESTful interface for managing (create, update, read etc.) FHIR Questionnaire resources and ]FHIR DocumentReference resources]. [[4smicroservices:questionnaireservice:conformance|Questionnaire Service FHIR API (conformance statement)
FHIR Questionnaire resources are exposed at /Questionnaire
. Example:
curl -i -X GET http://localhost:8081/Questionnaire/
Kafka consumer:
Kafka producer:
{"type": string, "resource": string, "message": string}
where type
is the type of operation that has been performed (e.g. “created”), resource
is the resource type operated on (e.g. “questionnaire”) and message
is the resource content operated on (in JSON format).
From 4S bitbucket: https://bitbucket.org/4s/questionnaire-service
The Questionnaire Service source code is licensed under the Apache 2.0 license.