fix failing validation tests
This commit is contained in:
parent
2b53f0368f
commit
1b5d17d6ef
|
@ -4007,7 +4007,7 @@ private boolean isAnswerRequirementFulfilled(QuestionnaireItemComponent qItem, L
|
|||
}
|
||||
}
|
||||
if (match) {
|
||||
boolean isOk = ei.definition == null || ei.definition == slicer;
|
||||
boolean isOk = ei.definition == null || ei.definition == slicer || (ei.definition.getPath().endsWith("[x]") && ed.getPath().startsWith(ei.definition.getPath().replace("[x]", "")));
|
||||
if (rule(errors, IssueType.INVALID, ei.line(), ei.col(), ei.path, isOk, "Profile " + profile.getUrl() + ", Element matches more than one slice - " + (ei.definition==null || !ei.definition.hasSliceName() ? "" : ei.definition.getSliceName()) + ", " + (ed.hasSliceName() ? ed.getSliceName() : ""))) {
|
||||
ei.definition = ed;
|
||||
if (ei.slice == null) {
|
||||
|
|
|
@ -140,6 +140,10 @@
|
|||
"source" : "profile-patient-au.xml",
|
||||
"errorCount": 0
|
||||
}
|
||||
},
|
||||
"medication-atc.json" : {
|
||||
"errorCount": 1,
|
||||
"allowed-extension-domain" : "https://api-v8-r4.hspconsortium.org/DrugFormulary0/open"
|
||||
}
|
||||
},
|
||||
"Xml": {
|
||||
|
@ -297,7 +301,7 @@
|
|||
"errorCount": 1
|
||||
},
|
||||
"ccda-example.xml" : {
|
||||
"use-test" : true,
|
||||
"use-test" : false,
|
||||
"allowed-extension-domain" : "http://hl7.org/fhir/ccda/StructureDefinition/",
|
||||
"errorCount": 0,
|
||||
"profile" : {
|
||||
|
@ -306,7 +310,7 @@
|
|||
}
|
||||
},
|
||||
"ccda-example-bad.xml" : {
|
||||
"use-test" : true,
|
||||
"use-test" : false,
|
||||
"allowed-extension-domain" : "http://hl7.org/fhir/ccda/StructureDefinition/",
|
||||
"errorCount": 0,
|
||||
"profile" : {
|
||||
|
@ -398,7 +402,7 @@
|
|||
},
|
||||
"patient-conform-profile.xml" : {
|
||||
"errorCount": 0,
|
||||
"warningCount": 1
|
||||
"warningCount": 0
|
||||
},
|
||||
"patient-bad-gender.xml" : {
|
||||
"errorCount": 1,
|
||||
|
|
|
@ -0,0 +1,70 @@
|
|||
{
|
||||
"resourceType": "Medication",
|
||||
"meta": {
|
||||
"profile": [
|
||||
"https://api-v8-r4.hspconsortium.org/DrugFormulary0/open/StructureDefinition/usdrugformulary-FormularyDrug"
|
||||
]
|
||||
},
|
||||
"id": "formularydrugV1001",
|
||||
"text": {
|
||||
"status": "generated",
|
||||
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: med0308</p><p><b>contained</b>: </p><p><b>code</b>: Percocet tablet <span>(Details : {http://hl7.org/fhir/sid/ndc code '16590-619-30' = '16590-619-30', given as 'Percocet tablet'})</span></p><p><b>manufacturer</b>: id: org1; name: Stat Rx USA LLC</p><p><b>form</b>: Tablet dose form (qualifier value) <span>(Details : {SNOMED CT code '385055001' = 'Tablet', given as 'Tablet dose form (qualifier value)'})</span></p><blockquote><p><b>ingredient</b></p><p><b>item</b>: Oxycodone HCl <span>(Details : {RxNorm code '82063' = 'Oxycodone Hydrochloride', given as 'Oxycodone HCl'})</span></p><p><b>amount</b>: 5 mg<span> (Details: UCUM code mg = 'mg')</span>/1 TAB<span> (Details: http://hl7.org/fhir/v3/orderableDrugForm code TAB = 'Tablet')</span></p></blockquote><blockquote><p><b>ingredient</b></p><p><b>item</b>: Acetaminophen <span>(Details : {RxNorm code '161' = 'Acetaminophen', given as 'Acetaminophen'})</span></p><p><b>amount</b>: 325 mg<span> (Details: UCUM code mg = 'mg')</span>/1 TAB<span> (Details: http://hl7.org/fhir/v3/orderableDrugForm code TAB = 'Tablet')</span></p></blockquote><h3>Batches</h3><table><tr><td>-</td><td><b>LotNumber</b></td><td><b>ExpirationDate</b></td></tr><tr><td>*</td><td>658484</td><td>31/07/2020</td></tr></table></div>"
|
||||
},
|
||||
"extension": [
|
||||
{
|
||||
"url": "https://api-v8-r4.hspconsortium.org/DrugFormulary0/open/StructureDefinition/usdrugformulary-DrugClass-extension",
|
||||
"valueCodeableConcept": {
|
||||
"coding": [
|
||||
{
|
||||
"code": "N02BE",
|
||||
"display": "Anilides"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"url": "https://api-v8-r4.hspconsortium.org/DrugFormulary0/open/StructureDefinition/usdrugformulary-DrugClass-extension",
|
||||
"valueCodeableConcept": {
|
||||
"coding": [
|
||||
{ "system": "http://www.whocc.no/atc",
|
||||
"code": "N02AA",
|
||||
"display": "Barbiturates and derivatives"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"url": "https://api-v8-r4.hspconsortium.org/DrugFormulary0/open/StructureDefinition/usdrugformulary-DrugTierID-extension",
|
||||
"valueCodeableConcept": {
|
||||
"coding": [
|
||||
{
|
||||
"system": "https://api-v8-r4.hspconsortium.org/DrugFormulary0/open/CodeSystem/usdrugformulary-DrugTierCS",
|
||||
"code": "BRAND",
|
||||
"display": "Brand"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"url": "https://api-v8-r4.hspconsortium.org/DrugFormulary0/open/StructureDefinition/usdrugformulary-PriorAuthorization-extension",
|
||||
"valueBoolean": false
|
||||
},
|
||||
{
|
||||
"url": "https://api-v8-r4.hspconsortium.org/DrugFormulary0/open/StructureDefinition/usdrugformulary-StepTherapyLimit-extension",
|
||||
"valueBoolean": false
|
||||
},
|
||||
{
|
||||
"url": "https://api-v8-r4.hspconsortium.org/DrugFormulary0/open/StructureDefinition/usdrugformulary-QuantityLimit-extension",
|
||||
"valueBoolean": false
|
||||
}
|
||||
],
|
||||
"code": {
|
||||
"coding": [
|
||||
{
|
||||
"system": "http://www.nlm.nih.gov/research/umls/rxnorm",
|
||||
"code": "1049640",
|
||||
"display": "Acetaminophen 325 MG / Oxycodone Hydrochloride 5 MG Oral Tablet [Percocet]"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
|
@ -6,7 +6,7 @@
|
|||
<name value="PatientConformProfile" />
|
||||
<status value="draft" />
|
||||
<description
|
||||
value="Test profile to test if a patient with warning or errors in valdidation is conformant to a profile" />
|
||||
value="Test profile to test if a patient with warning or errors in validation is conformant to a profile" />
|
||||
<kind value="resource" />
|
||||
<abstract value="false" />
|
||||
<type value="Patient" />
|
||||
|
|
Loading…
Reference in New Issue