Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ele-1 constraint in IdentifierBsnr #564

Merged
merged 2 commits into from
Jun 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,6 @@
"path": "Identifier.value",
"min": 1,
"constraint": [
{
"key": "ele-1",
"severity": "error",
"human": "All FHIR elements must have a @value or children",
"expression": "hasValue() or (children().count() > id.count())",
"xpath": "@value|f:*|h:div",
"source": "http://fhir.de/StructureDefinition/identifier-iknr"
},
{
"key": "bsnr-1",
"severity": "warning",
Expand All @@ -92,9 +84,8 @@
{
"key": "bsnr-1",
"severity": "warning",
"human": "Eine BSNR muss neunstellig numerisch sein",
"human": "Eine BSNR muss 9-stellig numerisch sein",
"expression": "matches('^[0-9]{9}$')",
"xpath": "@value|f:*|h:div",
"source": "http://fhir.de/StructureDefinition/identifier-bsnr"
}
]
Expand Down
19 changes: 1 addition & 18 deletions resources/input/fsh/profiles/IdentifierBsnr.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,8 @@ Description: "Identifier-Profil für die Abbildung einer Betriebsstättennummer"
* system = "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR" (exactly)
* value 1..
* obeys bsnr-1
// WARNING: The constraint index in the following rule (e.g., constraint[0]) may be incorrect.
// Please compare with the constraint array in the original definition's snapshot and adjust as necessary.
* ^constraint.source = "http://fhir.de/StructureDefinition/identifier-iknr"
* assigner.identifier.system 1..
* assigner.identifier.system = "http://fhir.de/sid/arge-ik/iknr" (exactly)
* assigner.identifier.value 1..
// WARNING: The constraint index in the following rule (e.g., constraint[0]) may be incorrect.
// Please compare with the constraint array in the original definition's snapshot and adjust as necessary.
* ^constraint.key = "bsnr-1"
// WARNING: The constraint index in the following rule (e.g., constraint[0]) may be incorrect.
// Please compare with the constraint array in the original definition's snapshot and adjust as necessary.
* ^constraint.severity = #warning
// WARNING: The constraint index in the following rule (e.g., constraint[0]) may be incorrect.
// Please compare with the constraint array in the original definition's snapshot and adjust as necessary.
* ^constraint.human = "Eine BSNR muss neunstellig numerisch sein"
// WARNING: The constraint index in the following rule (e.g., constraint[0]) may be incorrect.
// Please compare with the constraint array in the original definition's snapshot and adjust as necessary.
* ^constraint.expression = "matches('^[0-9]{9}$')"
// WARNING: The constraint index in the following rule (e.g., constraint[0]) may be incorrect.
// Please compare with the constraint array in the original definition's snapshot and adjust as necessary.
* ^constraint.source = "http://fhir.de/StructureDefinition/identifier-bsnr"
* obeys bsnr-1
* assigner.display 1..