Skip to content

Commit e185257

Browse files
authored
Merge pull request #15 from mlaletina95/target-constraint-extantion
Rename item to target constraint, add extantion
2 parents 9aadb83 + 7a58624 commit e185257

2 files changed

Lines changed: 36 additions & 35 deletions

File tree

resources/Questionnaire/item-constraint.yaml

Lines changed: 0 additions & 35 deletions
This file was deleted.
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
resourceType: Questionnaire
2+
id: target-constraint
3+
name: target-constraint
4+
title: Target Constraint
5+
status: active
6+
url: "http://example.org/fhir/Questionnaire/target-constraint"
7+
meta:
8+
profile:
9+
- https://emr-core.beda.software/StructureDefinition/fhir-emr-questionnaire
10+
item:
11+
- linkId: primary-contact
12+
text: Primary contact
13+
type: string
14+
required: true
15+
entryFormat: Enter primary contact value
16+
17+
- linkId: secondary-contact
18+
text: Secondary contact
19+
type: string
20+
entryFormat: Optional; must differ from primary contact
21+
extension:
22+
- url: http://hl7.org/fhir/StructureDefinition/targetConstraint
23+
extension:
24+
- url: key
25+
valueId: secondary-not-equal-primary
26+
- url: requirements
27+
valueString: Secondary contact, if present, must not duplicate primary contact
28+
- url: severity
29+
valueCode: error
30+
- url: human
31+
valueString: Secondary contact must be different from primary contact
32+
- url: expression
33+
valueString: >-
34+
%resource.item.where(linkId='secondary-contact').answer.empty() or
35+
%resource.item.where(linkId='secondary-contact').answer.first() !=
36+
%resource.item.where(linkId='primary-contact').answer.first()

0 commit comments

Comments
 (0)