-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathresources.yaml
159 lines (138 loc) · 3.1 KB
/
resources.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
id: TutorNotificationTemplate
resourceType: FHIRSchema
url: "http://example.com/aidbox-sms-tutor/TutorNotificationTemplate"
type: TutorNotificationTemplate
name: TutorNotificationTemplate
base: DomainResource
kind: resource
derivation: specialization
required:
- template
elements:
template:
type: string
scalar: true
---
id: TutorNotification
resourceType: FHIRSchema
url: "http://example.com/aidbox-sms-tutor/TutorNotification"
type: TutorNotification
name: TutorNotification
base: DomainResource
kind: resource
derivation: specialization
required:
- sendAfter
- status
- subject
- template
- type
elements:
type:
type: string
scalar: true
binding:
valueSet: "http://hl7.org/fhir/ValueSet/contact-point-system"
strength: required
status:
type: string
scalar: true
constraints:
cont-status:
human: "Status should be 'requested', 'in-progress' or 'completed'"
severity: "error"
expression: "%context='requested' or %context='in-progress' or %context='completed'"
binding:
valueSet: "http://hl7.org/fhir/ValueSet/task-status"
strength: required
template:
type: Reference
scalar: true
refers: ["TutorNotificationTemplate"]
message:
type: string
scalar: true
sendAfter:
type: dateTime
scalar: true
subject:
type: Reference
scalar: true
refers: ["Patient"]
---
resourceType: SearchParameter
id: TutorNotification-type
url: http://example.com/aidbox-sms-tutor/TutorNotification-type
version: 0.0.1
status: draft
name: type
code: type
base:
- TutorNotification
type: token
description: Search TutorNotification by type
expression: TutorNotification.type
---
resourceType: SearchParameter
id: TutorNotification-status
url: http://example.com/aidbox-sms-tutor/TutorNotification-status
version: 0.0.1
status: draft
name: status
code: status
base:
- TutorNotification
type: token
description: Search TutorNotification by status
expression: TutorNotification.status
---
resourceType: SearchParameter
id: TutorNotification-after
url: http://example.com/aidbox-sms-tutor/TutorNotification-after
version: 0.0.1
status: draft
name: after
code: after
base:
- TutorNotification
type: date
description: Search TutorNotification by sendAfter
expression: TutorNotification.sendAfter
---
resourceType: SearchParameter
id: TutorNotification-subject
url: http://example.com/aidbox-sms-tutor/TutorNotification-subject
version: 0.0.1
status: draft
name: subject
code: subject
base:
- TutorNotification
type: reference
description: Search TutorNotification by subject
expression: TutorNotification.subject
---
resourceType: SearchParameter
id: TutorNotification-template
url: http://example.com/aidbox-sms-tutor/TutorNotification-template
version: 0.0.1
status: draft
name: template
code: template
base:
- TutorNotification
type: reference
description: Search TutorNotification by template
expression: TutorNotification.template
---
id: welcome
resourceType: TutorNotificationTemplate
template: |
Hello user name: {{patient.name.given}}
---
id: pt-1
name:
- given:
- James
family: Morgan
resourceType: Patient