Skip to content

Commit 9435231

Browse files
fix: Some low hanging fruit (#63)
* fix coding system and profile names * hard code coding * remove junk * update expected number of validation errors
1 parent a1b0616 commit 9435231

File tree

7 files changed

+17
-13
lines changed

7 files changed

+17
-13
lines changed

data/Templates/eCR/Resource/_ObservationExposureContact.liquid

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
{
3131
"coding": [
3232
{
33-
"system": "http://terminology.hl7.org/ValueSet/v3-ActClassExposure",
33+
"system": "http://terminology.hl7.org/CodeSystem/v3-ActClass",
3434
"code": "EXPOS",
3535
}
3636
]

data/Templates/eCR/Resource/_ObservationPostpartumStatus.liquid

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{
88
"profile":
99
[
10-
"http://hl7.org/fhir/us/ecr/2.1.2/StructureDefinition-us-ph-postpartum-status",
10+
"http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-postpartum-status",
1111
],
1212
},
1313
"identifier":

data/Templates/eCR/Resource/_ObservationRREICRProcessingStatusReason.liquid

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,12 @@
2323
{
2424
"coding":
2525
[
26-
{ {% include 'DataType/Coding' Coding: ob.code -%} },
27-
]
26+
{
27+
"code": "RR6",
28+
"system": "urn:oid:2.16.840.1.114222.4.5.232",
29+
"display": "eICR Processing Status Reason"
30+
},
31+
],
2832
},
2933
"valueCodeableConcept": {
3034
{% include 'DataType/CodeableConcept' CodeableConcept: ob.value -%}

src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/BaseConvertDataFunctionalTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,10 +240,10 @@ public static IEnumerable<object[]> GetDataForEcr()
240240
// 5. The number of expected failures at the step in (4)
241241
// ]
242242
new[] { @"EICR", @"eCR_full.xml", @"eCR_full-expected.json", "validation", "13" },
243-
new[] { @"EICR", @"eCR_RR_combined_3_1.xml", @"eCR_RR_combined_3_1-expected.json", "validation", "27" },
244-
new[] { @"EICR", @"eCR_EveEverywoman.xml", @"eCR_EveEverywoman-expected.json", "validation", "62" },
243+
new[] { @"EICR", @"eCR_RR_combined_3_1.xml", @"eCR_RR_combined_3_1-expected.json", "validation", "26" },
244+
new[] { @"EICR", @"eCR_EveEverywoman.xml", @"eCR_EveEverywoman-expected.json", "validation", "58" },
245245
new[] { @"EICR", @"eicr04152020.xml", @"eicr04152020-expected.json", "validation", "22" },
246-
new[] { @"EICR", @"CDAR2_IG_PHCASERPT_R2_D2_SAMPLE.xml", @"CDAR2_IG_PHCASERPT_R2_D2_SAMPLE-expected.json", "validation", "33" },
246+
new[] { @"EICR", @"CDAR2_IG_PHCASERPT_R2_D2_SAMPLE.xml", @"CDAR2_IG_PHCASERPT_R2_D2_SAMPLE-expected.json", "validation", "32" },
247247
};
248248
return data.Select(item => new[]
249249
{

src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/eCR/EICR/CDAR2_IG_PHCASERPT_R2_D2_SAMPLE-expected.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1208,7 +1208,7 @@
12081208
"id": "4e7f8ad6-3b2a-91e0-0d2a-42f0b0d5719d",
12091209
"meta": {
12101210
"profile": [
1211-
"http://hl7.org/fhir/us/ecr/2.1.2/StructureDefinition-us-ph-postpartum-status"
1211+
"http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-postpartum-status"
12121212
]
12131213
},
12141214
"identifier": [

src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/eCR/EICR/eCR_EveEverywoman-expected.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1852,7 +1852,7 @@
18521852
"id": "94fe2533-e208-a1b4-c510-c9ece8a2d490",
18531853
"meta": {
18541854
"profile": [
1855-
"http://hl7.org/fhir/us/ecr/2.1.2/StructureDefinition-us-ph-postpartum-status"
1855+
"http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-postpartum-status"
18561856
]
18571857
},
18581858
"identifier": [
@@ -2470,7 +2470,7 @@
24702470
{
24712471
"coding": [
24722472
{
2473-
"system": "http://terminology.hl7.org/ValueSet/v3-ActClassExposure",
2473+
"system": "http://terminology.hl7.org/CodeSystem/v3-ActClass",
24742474
"code": "EXPOS"
24752475
}
24762476
]
@@ -2539,7 +2539,7 @@
25392539
{
25402540
"coding": [
25412541
{
2542-
"system": "http://terminology.hl7.org/ValueSet/v3-ActClassExposure",
2542+
"system": "http://terminology.hl7.org/CodeSystem/v3-ActClass",
25432543
"code": "EXPOS"
25442544
}
25452545
]
@@ -2624,7 +2624,7 @@
26242624
{
26252625
"coding": [
26262626
{
2627-
"system": "http://terminology.hl7.org/ValueSet/v3-ActClassExposure",
2627+
"system": "http://terminology.hl7.org/CodeSystem/v3-ActClass",
26282628
"code": "EXPOS"
26292629
}
26302630
]

src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/eCR/EICR/eCR_RR_combined_3_1-expected.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,7 @@
969969
{
970970
"code": "RR6",
971971
"system": "urn:oid:2.16.840.1.114222.4.5.232",
972-
"display": "eICR processing status reason"
972+
"display": "eICR Processing Status Reason"
973973
}
974974
]
975975
},

0 commit comments

Comments
 (0)