Skip to content

Commit 3e46d94

Browse files
committed
#287: Clarified allowable data types for context fields that can be used as prefetch tokens.
1 parent dc103d1 commit 3e46d94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/specification/1.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ Often a prefetch template builds on the contextual data associated with the hook
690690

691691
The token name would be `{{context.patientId}}`. Again using our above conditions example, the complete prefetch template would be `Condition?patient={{context.patientId}}`.
692692

693-
Only the first level fields in context may be considered for tokens. Hook creators MUST document which fields in the context are supported as tokens. If a context field can be tokenized, the value of the context field MUST be a data type that can placed into a FHIR query (eg, string, number, etc).
693+
Only the first level fields in context may be considered for tokens. Hook creators MUST document which fields in the context are supported as tokens. If a context field can be tokenized, the value of the context field MUST be a JSON primitive data type that can placed into a FHIR query (i.e. a string, a number, or a boolean).
694694

695695
For example, given the following context that contains amongst other things, a Patient FHIR resource:
696696

0 commit comments

Comments
 (0)