Uploaded image for project: 'FHIR Module v2'
  1. FHIR Module v2
  2. FM2-460

Create a real integration test for the Patient domain

    XMLWordPrintable

Details

    • New Feature
    • Status: Code Review (Post-Commit)
    • Could
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      Patient is always a good place to start. Please see the linked Epic for an overview.

      Concretely, we need a test class that tests:

      1. A GET request to `/openmrs/ws/fhir2/R4/Patient/<uuid>` returns a valid FHIR patient.
      2. A POST request to `/openmrs/ws/fhir2/R4/Patient` with a request body consisting of a JSON patient should create a patient.
      3. A PUT request to `/openmrs/ws/fhir2/R4/Patient/<uuid>` with a request body consisting of a JSON patient should update the details of the patient record.
      4. A DELETE request to `/openmrs/ws/fhir2/R4/Patient/<uuid>` should void the patient.

      As models, please see the existing patient integration tests as well as the supporting data files for create and update. Note that these files will likely need to be adjusted to take account of the metadata available from the running OpenMRS server.

      Gliffy Diagrams

        Attachments

          Issue Links

            Activity

              People

                jnsereko Joshua Nsereko
                ibacher Ian Bacher
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated: