Site Tools


4smicroservices:questionnaireservice

Questionnaire Service

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.

Project status

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.

Documentation

Service RESTful API

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/

Service Messaging

Kafka consumer:

Kafka producer:

  • Topic: questionnaire-service
  • Payload: JSON on the form
    {"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).

Source code

Issue Tracking

License

The Questionnaire Service source code is licensed under the Apache 2.0 license.

4smicroservices/questionnaireservice.txt · Last modified: 2018/12/12 13:27 (external edit)