Skip to content

Commit

Permalink
Add test for narrative with no whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Grahame Grieve committed Oct 31, 2023
1 parent f73f88a commit b5aae1e
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 15 deletions.
14 changes: 14 additions & 0 deletions validator/list-xhtml-empty.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!-- this is all valid -->
<List xmlns="http://hl7.org/fhir">
<!-- another comment -->
<id value="val1"/>
<text>
<status value="generated"/>
<div xmlns="http://www.w3.org/1999/xhtml">
<p></p>
</div>
</text>
<status value="current"/>
<mode value="changes"/>
</List>
<!-- ending comment -->
58 changes: 43 additions & 15 deletions validator/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -30433,7 +30433,7 @@
"severity": "warning",
"code": "business-rule",
"details": {
"text": "Review the extension type: extensions should not have a context of Element unless it's really intended that they can be used anywhere"
"text": "Review the extension type for Extension-CareConnect-EncounterTransport-1: extensions should not have a context of Element unless it's really intended that they can be used anywhere"
},
"expression": [
"StructureDefinition.context[0]"
Expand Down Expand Up @@ -34420,29 +34420,57 @@
},
{
"name": "slice-instance",
"file": "slice-instance.json",
"file": "slice-instance.json",
"description": "Checking .slice() in constraints",
"version": "5.0",
"java": {
"outcome": {
"resourceType": "OperationOutcome"
}
},
"profile" : {
"source" : "slice-profile.json",
"profile": {
"source": "slice-profile.json",
"java": {
"outcome": {
"resourceType" : "OperationOutcome",
"issue" : [{
"severity" : "error",
"code" : "invariant",
"details" : {
"text" : "Constraint failed: spt-1: 'Phone numbers must have a use'"
},
"diagnostics" : "[11,4]",
"expression" : ["Patient.telecom[2]"]
}]
}
"resourceType": "OperationOutcome",
"issue": [
{
"severity": "error",
"code": "invariant",
"details": {
"text": "Constraint failed: spt-1: 'Phone numbers must have a use'"
},
"diagnostics": "[11,4]",
"expression": [
"Patient.telecom[2]"
]
}
]
}
}
}
},
{
"name": "list-xhtml-empty",
"file": "list-xhtml-empty.xml",
"description": "Checking htmlChecks() covers non-empty xhtml",
"version": "4.0",
"java": {
"outcome": {
"resourceType": "OperationOutcome",
"issue": [
{
"severity": "error",
"code": "invariant",
"details": {
"text": "Constraint failed: txt-2: 'The narrative SHALL have some non-whitespace content'"
},
"diagnostics": "[7,47]",
"expression": [
"List.text.div"
]
}
]
}
}
},
Expand Down

0 comments on commit b5aae1e

Please sign in to comment.