Skip to content

Commit

Permalink
Fix warnings (#364)
Browse files Browse the repository at this point in the history
  • Loading branch information
BoyaWu10 authored Mar 22, 2022
1 parent 33be738 commit bc03677
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,27 +90,27 @@ public static IEnumerable<object[]> GetDataForHl7v2()
new[] { @"SIU_S26", @"SIU-S26-01.hl7", @"SIU-S26-01-expected.json" },
new[] { @"SIU_S26", @"SIU-S26-02.hl7", @"SIU-S26-02-expected.json" },

new[] { "ORU_R01", "ORU-R01-01.hl7", @"ORU-R01-01-expected.json" },
new[] { @"ORU_R01", @"ORU-R01-01.hl7", @"ORU-R01-01-expected.json" },

new[] { @"ORM_O01", @"ORM-O01-01.hl7", @"ORM-O01-01-expected.json" },
new[] { @"ORM_O01", @"ORM-O01-02.hl7", @"ORM-O01-02-expected.json" },
new[] { @"ORM_O01", @"ORM-O01-03.hl7", @"ORM-O01-03-expected.json" },
new[] { @"ORM_O01", @"ORM-O01-04.hl7", @"ORM-O01-04-expected.json" },
new[] { @"ORM_O01", @"ORM-O01-05.hl7", @"ORM-O01-05-expected.json" },

new[] { "MDM_T01", "MDM-T01-01.hl7", @"MDM-T01-01-expected.json"},
new[] { "MDM_T01", "MDM-T01-02.hl7", @"MDM-T01-02-expected.json"},
new[] { "MDM_T02", "MDM-T02-01.hl7", @"MDM-T02-01-expected.json"},
new[] { "MDM_T02", "MDM-T02-02.hl7", @"MDM-T02-02-expected.json"},
new[] { "MDM_T02", "MDM-T02-03.hl7", @"MDM-T02-03-expected.json"},
new[] { @"MDM_T05", @"MDM-T05-01.hl7", @"MDM-T05-01-expected.json"},
new[] { @"MDM_T05", @"MDM-T05-02.hl7", @"MDM-T05-02-expected.json"},
new[] { @"MDM_T06", @"MDM-T06-01.hl7", @"MDM-T06-01-expected.json"},
new[] { @"MDM_T06", @"MDM-T06-02.hl7", @"MDM-T06-02-expected.json"},
new[] { @"MDM_T09", @"MDM-T09-01.hl7", @"MDM-T09-01-expected.json"},
new[] { @"MDM_T09", @"MDM-T09-02.hl7", @"MDM-T09-02-expected.json"},
new[] { @"MDM_T10", @"MDM-T10-01.hl7", @"MDM-T10-01-expected.json"},
new[] { @"MDM_T10", @"MDM-T10-02.hl7", @"MDM-T10-02-expected.json"},
new[] { @"MDM_T01", @"MDM-T01-01.hl7", @"MDM-T01-01-expected.json" },
new[] { @"MDM_T01", @"MDM-T01-02.hl7", @"MDM-T01-02-expected.json" },
new[] { @"MDM_T02", @"MDM-T02-01.hl7", @"MDM-T02-01-expected.json" },
new[] { @"MDM_T02", @"MDM-T02-02.hl7", @"MDM-T02-02-expected.json" },
new[] { @"MDM_T02", @"MDM-T02-03.hl7", @"MDM-T02-03-expected.json" },
new[] { @"MDM_T05", @"MDM-T05-01.hl7", @"MDM-T05-01-expected.json" },
new[] { @"MDM_T05", @"MDM-T05-02.hl7", @"MDM-T05-02-expected.json" },
new[] { @"MDM_T06", @"MDM-T06-01.hl7", @"MDM-T06-01-expected.json" },
new[] { @"MDM_T06", @"MDM-T06-02.hl7", @"MDM-T06-02-expected.json" },
new[] { @"MDM_T09", @"MDM-T09-01.hl7", @"MDM-T09-01-expected.json" },
new[] { @"MDM_T09", @"MDM-T09-02.hl7", @"MDM-T09-02-expected.json" },
new[] { @"MDM_T10", @"MDM-T10-01.hl7", @"MDM-T10-01-expected.json" },
new[] { @"MDM_T10", @"MDM-T10-02.hl7", @"MDM-T10-02-expected.json" },

new[] { @"RDE_O11", @"RDE-O11-01.hl7", @"RDE-O11-01-expected.json" },
new[] { @"RDE_O11", @"RDE-O11-02.hl7", @"RDE-O11-02-expected.json" },
Expand All @@ -120,20 +120,20 @@ public static IEnumerable<object[]> GetDataForHl7v2()
new[] { @"RDS_O13", @"RDS-O13-01.hl7", @"RDS-O13-01-expected.json" },
new[] { @"RDS_O13", @"RDS-O13-02.hl7", @"RDS-O13-02-expected.json" },

new[] { "OML_O21", "OML-O21-01.hl7", @"OML-O21-01-expected.json"},
new[] { "OML_O21", "OML-O21-02.hl7", @"OML-O21-02-expected.json"},
new[] { @"OML_O21", @"OML-O21-03.hl7", @"OML-O21-03-expected.json"},
new[] { @"OML_O21", @"OML-O21-01.hl7", @"OML-O21-01-expected.json" },
new[] { @"OML_O21", @"OML-O21-02.hl7", @"OML-O21-02-expected.json" },
new[] { @"OML_O21", @"OML-O21-03.hl7", @"OML-O21-03-expected.json" },

new[] { "OUL_R22", "OUL-R22-01.hl7", @"OUL-R22-01-expected.json"},
new[] { "OUL_R22", "OUL-R22-02.hl7", @"OUL-R22-02-expected.json"},
new[] { "OUL_R23", "OUL-R23-01.hl7", @"OUL-R23-01-expected.json"},
new[] { "OUL_R23", "OUL-R23-02.hl7", @"OUL-R23-02-expected.json"},
new[] { "OUL_R24", "OUL-R24-01.hl7", @"OUL-R24-01-expected.json"},
new[] { "OUL_R24", "OUL-R24-02.hl7", @"OUL-R24-02-expected.json"},
new[] { @"OUL_R22", @"OUL-R22-01.hl7", @"OUL-R22-01-expected.json" },
new[] { @"OUL_R22", @"OUL-R22-02.hl7", @"OUL-R22-02-expected.json" },
new[] { @"OUL_R23", @"OUL-R23-01.hl7", @"OUL-R23-01-expected.json" },
new[] { @"OUL_R23", @"OUL-R23-02.hl7", @"OUL-R23-02-expected.json" },
new[] { @"OUL_R24", @"OUL-R24-01.hl7", @"OUL-R24-01-expected.json" },
new[] { @"OUL_R24", @"OUL-R24-02.hl7", @"OUL-R24-02-expected.json" },

new[] { @"VXU_V04", @"VXU-V04-01.hl7", @"VXU-V04-01-expected.json" },
new[] { @"VXU_V04", @"VXU-V04-02.hl7", @"VXU-V04-02-expected.json" },

new[] { @"VXU_V04", @"VXU-V04-01.hl7", @"VXU-V04-01-expected.json"},
new[] { @"VXU_V04", @"VXU-V04-02.hl7", @"VXU-V04-02-expected.json"},

new[] { @"ADT_A01", @"ADT01-23.hl7", @"ADT01-23-expected.json" },
new[] { @"ADT_A01", @"ADT01-28.hl7", @"ADT01-28-expected.json" },
new[] { @"ADT_A04", @"ADT04-23.hl7", @"ADT04-23-expected.json" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public static IEnumerable<object[]> GetHL7V2Cases()
new object[] { "ADT_A06", "ADT-A06-01.hl7" },
new object[] { "ADT_A06", "ADT-A06-02.hl7" },
new object[] { "ADT_A07", "ADT-A07-01.hl7" },
new object[] { "ADT_A07", "ADT-A07-02.hl7" },
new object[] { "ADT_A07", "ADT-A07-02.hl7" },
new object[] { "ADT_A08", "ADT-A08-01.hl7" },
new object[] { "ADT_A08", "ADT-A08-02.hl7" },
new object[] { "ADT_A09", "ADT-A09-01.hl7" },
Expand Down Expand Up @@ -117,7 +117,6 @@ public static IEnumerable<object[]> GetHL7V2Cases()
new object[] { "ORM_O01", "ORM-O01-03.hl7" },
new object[] { "ORM_O01", "ORM-O01-04.hl7" },
new object[] { "ORM_O01", "ORM-O01-05.hl7" },


new object[] { "MDM_T01", "MDM-T01-01.hl7" },
new object[] { "MDM_T01", "MDM-T01-02.hl7" },
Expand Down Expand Up @@ -233,10 +232,12 @@ public async Task CheckOnePatient(string templateName, string samplePath, DataTy
{
var result = await ConvertData(templateName, samplePath, dataType);
var patients = result.SelectTokens("$.entry[?(@.resource.resourceType == 'Patient')].resource.id");
if (templateName == "ADT_A40" || templateName == "ADT_A41" ) {
if (templateName == "ADT_A40" || templateName == "ADT_A41")
{
Assert.Equal(0, patients?.Count());
}
else {
else
{
Assert.Equal(1, patients?.Count());
}
}
Expand Down Expand Up @@ -500,7 +501,7 @@ internal static class ResourceFilter
"resourceType", "type", "fullUrl", "id", "method", "url", "reference", "system",
"code", "display", "gender", "use", "preferred", "status", "mode", "div", "valueString", "valueCode",
"text", "endpoint", "value", "category", "type", "criticality", "priority", "severity", "description",
"intent", "docStatus", "contentType", "authorString", "unit"
"intent", "docStatus", "contentType", "authorString", "unit",
};

private static readonly HashSet<string> _explicitValues = new HashSet<string>
Expand Down

0 comments on commit bc03677

Please sign in to comment.