TEST: OHIE-CR-05-FHIR
This test ensures that the receiver can create a record with minimally useful information linked to another person/patient. This is often useful when registering an infant demographic record where only date of birth, gender and mother's information is known.
This test is a combination of TEST-OHIE-CR05 and TEST-OHIE-CR07 from the HL7v2 test suite.
References
Discussion
A master patient index/client registry is often tasked with the storage of partial registration records and/or records which are only identifiable by their mother's information.
Whereas this information can be registered in one message in HL7v2 (using mother's name and mother's identifier), this test requires the use of either:
A FHIR transaction bundle to register a related person (the mother) and patient
Two FHIR operations to register the patient and the related person (the mother)
A PMIR message with the related person (the mother) and patient.
FHIR Representation of Mother/Child Relationship
SanteMPI supports robust relationships between entities which cannot be easily expressed in FHIR. For example, there may be use cases where the mother is a patient (via delivery) at a hospital and the child is also a patient (receiving care at a NICU). Unfortunately, this type of relationship in FHIR is represented as the following structure:
Unfortunately in SanteMPI this type of relationship can only be established when:
The three resources are submitted as part of an entire bundle (such as a transaction bundle or PMIR operation)
The Registration occurs on the REST interface such that:
Mother Patient is registered first with a concrete identifier in the
identifier
propertyBaby Patient is registered next with a concrete identifier in the
identifier
propertyMother RelatedPerson is registered using the same concrete
identifier
as that used in step .
This test suite tests both methods of creating a mother/child relationship
Pre-Conditions / Setup
Ensure that all pre-conditions for OHIE-CR-02-FHIR have been completed.
Authenticate as TEST_HARNESS_FHIR
The test harness authenticates against the SanteMPI IdP using a client_credentials grant for the test-harness-a account.
Register Mother / Child Demographics in Transaction Bundle
The test harness sends an authenticated request to create a child record with a mother's demographics as a simple related person.
Identifier FHR-050 in http://ohie.org/test/test with use official
Name: WIN MINH
Gender: Male
DOB: 2017-04-03
The mother is a simple Related Person with name SU MYAT LWIN.
This test case does not use familial names to mimic contexts where only given names (no surnames) are present.
Expected Behaviour
Requirement
Option
Description
MUST
PMIR Only
Return MessageHeader with response.code = ok
MUST
Return HTTP code of 201 Created
SHOULD
PMIR Only
Include an OperationOutcome entry in the response
SHOULD
Include a Patient entry in response containing created patient
SHOULD
Include the RelatedPerson entry which was created
SHOULD
Include a link to the master identity with code refer
Validate Child Patient Created
The test harness executes a query against the receiver to ensure the record was created domain
Expected Behaviour
Requirement
Option
Description
MUST
Accept the message with HTTP 200 OK
MUST
Include a bundle with exactly 1 patient result
MUST
Include a bundle with exactly 1 RelatedPerson result
MUST
Contain a patient for WIN MINH
MUST
Have an identifier for FHR-050 in system http://ohie.org/test/test
MUST
Contain a RelatedPerson with name SU MYAT LWIN
SHOULD
Contain one or more link entries with type seealso pointing to local records
Register Mother Patient and Newborn Demographics in Transaction Bundle
The test harness sends an authenticated request to create a newborn record with the mother's demographics. This test mimics registering a patient (the Mother) and a nameless newborn (the Baby) in one transaction.
Patient (Mother) details:
Identifier
FHR-052
inhttp://ohie.org/test/test
with useofficial
Name: SARAH ABELS
Gender: Female
DOB: 1984-05-25
Newborn information:
Identifier
FHR-051
inhttp://ohie.org/test/test
Gender: Female
DOB: 2021-04-25
The bundle portrayed is using type history
and is intended to be tested as part of a PMIR payload. You can also use the bundle as a simple POST of a transaction.
Expected Behaviour
Requirement
Option
Description
MUST
PMIR Only
Return MessageHeader with response.code = ok
MUST
Return HTTP code of 201 Created
SHOULD
PMIR Only
Include an OperationOutcome entry in the response
SHOULD
Include a Patient entry in response containing created patients for
the newborn and mother.
SHOULD
Include a link to the master identity with code refer
Validate Newborn Patient Created with Mother Related Person
The test harness executes a query against the receiver to ensure the record was created domain
Expected Behaviour
Requirement
Option
Description
MUST
Accept the message with HTTP 200 OK
MUST
Include a bundle with exactly 1 patient result.
MUST
Contain the nameless newborn patient details (validated by Gender and DOB)
MUST
Have an identifier for FHR-051 in system http://ohie.org/test/test
MUST
Have a RelatedPerson with identifier FHR-052 for SARAH ABELS
SHOULD
Contain one or more link entries with type seealso pointing to local records
Validate Mother Patient Created
The test harness will query by the identifier of the mother to validate that the receiver created the mother record for a patient.
Expected Behaviour
Requirement
Option
Description
MUST
Accept the message with HTTP 200 OK
MUST
Include a bundle with exactly 1 patient result.
MUST
Contain the mother patient details (name of SARAH ABELS)
MUST
Have an identifier for FHR-052 in system http://ohie.org/test/test
SHOULD
Contain one or more link entries with type seealso pointing to local records
Patient Demographics Query for Mobile Paediatric Query
The test harness will execute a query on the patient resource and will validate that the client registry understands the extended mothersMaidenName
parameter supplied.
Expected Behaviour
Requirement
Option
Description
MUST
Accept the message with HTTP 200 OK
MUST
Include a bundle with exactly 1 patient result.
MUST
Contain the child patient details
MUST
Have an identifier for FHR-051 in system http://ohie.org/test/test
SHOULD
Contain one or more link entries with type seealso pointing to local records
Last updated