Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Primary mentor

Backup mentor

Assigned to

Medhavi Srivastava

Abstract

Excerpt

FHIR is an emerging standard for healthcare interoperability. While OpenMRS has been an early adopter of the FHIR standard and there has been some work done on it already, there is a scope to do more in that area. FHIR defines a very detailed API for searching that is fundamental to providing the correct data to any front-end application. Currently, the OpenMRS FHIR module supports a good amount of search functionality including the capability to search across multiple properties and support advanced search parameters such as _include/_revinclude along with pagination.

This project aims to extend the FHIR module to include support for extended operations. Operations (for these purposes) serve as stored queries where there is some logic built into the semantics of the operation itself. For example, the $lastn operation on the Observation resource (invoked using [base]/Observation/$lastn?subject=Patient/123&max=3 endpoint for example) should return the most recent 3 Observations associated with the specified Patient reference. The aim is to implement extended operations that would prove useful for clients using the FHIR module.

...

  • Define, implement and execute the following type-level extended operations on the Observation resource:
    1. $lastn → The operation to fetch the most recent N Observations corresponding to the specified Patient resources.
      URL: [base]/Observation/$lastn?[query]
    2. $lastn-encounters → The operation to fetch all Observations matching the most recent N Encounters corresponding to the specified Patient resources.
      URL: [base]/Observation/$lastn-encounters?[query]
  • Improve the implementation of Observation.category to allow for enhanced filtering using the $lastn-type operations. In essence, helping in filtering out the "vitals" from other types of Observations.
  • Define, implement and execute the $everything instance-level operations on:
    1.  Patient resource → The operation to fetch all the information related to the specified Patient reference including links to any other resources.
       URL: [base]/Patient/[id]/$everything
    2.  Encounter resource → The operation to fetch all the information related to the specified Encounter reference including links to any other resources.
      URL: [base]/Encounter/[id]/$everything
  • The scope includes implementation for both the R3 and R4 versions of the resources and addition of appropriate unit and integration tests.

Extra Credit

  • Implement the $everything type-level extended operation for: 
    1. Patient resource (URL: [base]/Patient/$everything)
    2. Encounter resource (URL:[base]/Encounter/$everything)

Weekly Reports

Final Presentation

  • Talk Post - Link
  • Presentation Video - Link

Resources / Getting Started