Skip to content

Commit

Permalink
Fix failing test.
Browse files Browse the repository at this point in the history
Signed-off-by: Brian Cragun <cragun@us.ibm.com>
  • Loading branch information
Brian Cragun committed Jan 28, 2022
1 parent e216224 commit 070d1ec
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -598,15 +598,15 @@ void testInsuranceCoverageOfSelfAndTenant() throws IOException {
DatatypeUtils.checkCommonCodeableConceptAssertions(patientIdentifier.getType(), "MR", "Medical record number",
"http://terminology.hl7.org/CodeSystem/v2-0203", null); // PID.3.5
patientIdentifier = patient.getIdentifier().get(1);
assertThat(patientIdentifier.getValue()).isEqualTo("SSN123456"); // IN2.2
assertThat(patientIdentifier.hasSystem()).isFalse(); // No system for SSN
DatatypeUtils.checkCommonCodeableConceptAssertions(patientIdentifier.getType(), "SS", "Social Security number",
"http://terminology.hl7.org/CodeSystem/v2-0203", null);
patientIdentifier = patient.getIdentifier().get(2);
assertThat(patientIdentifier.getValue()).isEqualTo("MEMBER36"); // IN1.36 backup to IN2.61, active because subscriber is SELF
assertThat(patientIdentifier.hasSystem()).isFalse(); // No system for MB
DatatypeUtils.checkCommonCodeableConceptAssertions(patientIdentifier.getType(), "MB", "Member Number",
"http://terminology.hl7.org/CodeSystem/v2-0203", null);
patientIdentifier = patient.getIdentifier().get(2);
assertThat(patientIdentifier.getValue()).isEqualTo("SSN123456"); // IN2.2
assertThat(patientIdentifier.hasSystem()).isFalse(); // No system for SSN
DatatypeUtils.checkCommonCodeableConceptAssertions(patientIdentifier.getType(), "SS", "Social Security number",
"http://terminology.hl7.org/CodeSystem/v2-0203", null);

List<Resource> organizations = ResourceUtils.getResourceList(e, ResourceType.Organization);
assertThat(organizations).hasSize(3); // From Payor created by IN1, PayorId Organization (IN2.25), and PolcyHolder Organization Name (IN2.69)
Expand Down

0 comments on commit 070d1ec

Please sign in to comment.