Skip to content

Commit

Permalink
(docs) Update readme (questionnaires section)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose Francisco committed Jan 10, 2025
1 parent f3358e7 commit ca6884b
Showing 1 changed file with 41 additions and 7 deletions.
48 changes: 41 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,59 @@

openmrs-module-fhir2Extension
==========================


Description
-----------
This module's objective is to provide an extension to the `openmrs-module-fhir2` to support FHIR Questionnaires.
This module's objective is to provide an extension to the `openmrs-module-fhir2`.

## Questionnaire Support

This module extends the capabilities of the [OpenMRS FHIR2](https://github.com/openmrs/openmrs-module-fhir2) module by introducing support for the `Questionnaire` resource. It enables fetching questionnaires from the OpenMRS backend and exposing them through the FHIR API, facilitating interoperability with external FHIR-compliant systems.

**Key Features**

Questionnaire Resource Support:
- Fetches questionnaires from the OpenMRS backend.
- Exposes questionnaires through the FHIR API in compliance with the
FHIR specification.

**Interoperability:**

Enables seamless integration with external systems that require FHIR-compatible questionnaire data.

**Configuration:**

The folder containing JSON schemas for questionnaires is configured via the global property `fhir2extension.questionnaires.folder`. For example:

<globalProperty>
<property>fhir2extension.questionnaires.folder</property>
<value>/opt/openmrs-init-data/configuration/questionnaires/</value>
</globalProperty>

Ensure this property points to the directory where your questionnaire JSON schemas are stored. The module will use this location to fetch and expose the questionnaires.

**Usage:**

Once installed, the module provides endpoints under the FHIR API to interact with Questionnaire resources. These endpoints can be used to retrieve and manage questionnaires as per the FHIR standards.

**Example endpoint:**
In module FHIR Questionnaires correspond to an OpenMRS Form Resource with the json for the FHIR Questionnaire.

GET /ws/fhir2/R4/Questionnaire

Building from Source
--------------------
You will need to have Java 1.8+ and Maven 2.x+ installed. Use the command 'mvn package' to
You will need to have Java 1.8+ and Maven 2.x+ installed. Use the command 'mvn package' to
compile and package the module. The .omod file will be in the omod/target folder.

Alternatively you can add the snippet provided in the [Creating Modules](https://wiki.openmrs.org/x/cAEr) page to your
Alternatively you can add the snippet provided in the [Creating Modules](https://wiki.openmrs.org/x/cAEr) page to your
omod/pom.xml and use the mvn command:

mvn package -P deploy-web -D deploy.path="../../openmrs-1.8.x/webapp/src/main/webapp"

It will allow you to deploy any changes to your web
resources such as jsp or js files without re-installing the module. The deploy path says
It will allow you to deploy any changes to your web
resources such as jsp or js files without re-installing the module. The deploy path says
where OpenMRS is deployed.

Installation
Expand All @@ -29,6 +63,6 @@ Installation
3. Set the global property fhir2extension.questionnaires.folder to the directory path where the files are located.

If uploads are not allowed from the web (changable via a runtime property), you can drop the omod
into the ~/.OpenMRS/modules folder. (Where ~/.OpenMRS is assumed to be the Application
Data Directory that the running openmrs is currently using.) After putting the file in there
into the ~/.OpenMRS/modules folder. (Where ~/.OpenMRS is assumed to be the Application
Data Directory that the running openmrs is currently using.) After putting the file in there
simply restart OpenMRS/tomcat and the module will be loaded and started.

0 comments on commit ca6884b

Please sign in to comment.