Skip to content

Commit

Permalink
fix: small additions
Browse files Browse the repository at this point in the history
  • Loading branch information
witash committed Jan 20, 2025
1 parent 37bf1be commit eed3a18
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
8 changes: 8 additions & 0 deletions content/en/building/guides/interoperability/openhim.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,19 @@ You should get as a response similar to this:
"osuptime": 74012.24,
"processuptime": 56940.700039383
}
```

If everything is successful, when visiting [http://localhost:9000/#!/clients](http://localhost:9000/#!/clients) you should see this:

<img src="good-client-screen.png" width="600">

For testing other mediators, replace the URL (http://localhost:5001/mediator) with the appropriate values for the specific mediator you are testing.
For example if using the OpenMRS mediator, you can test it by running:

```bash
curl -X GET localhost:5001/mediator/openmrs/sync -H "Authorization: Basic $(echo -n interop-client:interop-password | base64)"
```

### CHT configuration with Docker

The following steps apply when running CHT via the Docker setup provided in the cht-interoperability repository:
Expand Down
9 changes: 8 additions & 1 deletion content/en/building/guides/interoperability/openmrs.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ This sequence diagrams shows the entire flow including the OpenMRS Mediator and

### Sending forms OpenMRS->CHT

When sending form data to CHT, first find, create, or import the concepts in OpenMRS, and create the forms in OpenMRS.
When sending form data to CHT, first find, create, or import the [https://guide.openmrs.org/configuration/managing-concepts-and-metadata/](concepts in OpenMRS), and create the forms in OpenMRS.
Then create a form in CHT to receive the reports [as described in the CHT interop config documentation]({{< ref "building/guides/interoperability/cht-config#outbound-reports" >}}); the codes from OpenMRS are the field names, and labels can be added for human readability.
When a visit is completed in OpenMRS, the mediator will sync it to the FHIR Server.

Expand Down Expand Up @@ -352,6 +352,13 @@ The interoperability project will automatically create the following resources

![](channels.png)

When running `./startup.sh up-openmrs`, a cht instances with a sample configuration is created for testing.
This includes:
* A sample outbound push configuration for patients.
* A sample outbound push configuration for encounters with a form `openmrs_height`.
* A sample form `HEIGHT_WEIGHT` for outgoing encounters.
* A sample form `OPENMRS_INCOMING` for incoming encounters.

### Troubleshooting

In case of errors when setting up the OpenHIM project please see the [Troubleshooting guide]({{< ref "building/guides/interoperability/openhim#troubleshooting" >}}).
Expand Down

0 comments on commit eed3a18

Please sign in to comment.