Extending FHIR module for a more specific set of profiles


I am researching to see if OpenMRS can be used for GP systems in the UK. One of the requirements for such a system is to implement an extension of FHIR API (the standard is known as GPConnect) to ease interoperability. GPConnect is an set of profiles base on STU3 FHIR profiles (eg. GPConnect patient resource: https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Patient-1)

I want to start by building a proof of concept that is basically an OpenMRS deployment with a module adding the GPConnect functionality. I want to create a new module, re-using and extending the openmrs-module-fhir module already existing.

Given I am new to OpenMRS, I am looking for advice on how to extend existent modules? One way I read about is importing the base module as dependency, are there other ways?

@mircea you make use of the require_modules xml element in your modules config.xml file to set your module to depend on the openmrs fhir2 module

@mircea Hello,

You can have a look here I have started working on Fhir Profiles under the guidance of @ibacher.

Hope this will help you to come up with a PoC.

@mircea you can also have a look at this https://wiki.openmrs.org/display/docs/Requiring+another+module+in+your+module

Thank you!! That worked for me.

For other people looking at extending a module - along side the link above I found this page very useful: https://wiki.openmrs.org/display/docs/Module+Dependencies

1 Like