Skip to content

Commit 2848a9e

Browse files
authored
Fix to prefretch example, for userId
Fixes #410 The `context.userId` field is (somewhat recently) defined to contains the FHIR resource name and identifier. For example, this field should contain: `Practitioner/123`. This was done to explicitly support scenarios other than provider-facing, for example, the user could be `Patient/456' or `Person/789` (following the [user-to-FHIR mapping](smart-on-fhir/smart-on-fhir.github.io#148)) that SMART negotiated. Because of this change, the prefetch example of `Practitioner/{{context.userId}}` would translate into `Practitioner/Practitioner/123` as issue #410 points out. This PR simply removes the "Practitioner/" string from the example, in lieu of the alternative, breaking changes suggested in #410.
1 parent 96735b7 commit 2848a9e

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
@@ -318,7 +318,7 @@ Only the `encounterId` field in this example is eligible to be a prefetch token
318318
"prefetch": {
319319
"patient": "Patient/{{context.patientId}}",
320320
"hemoglobin-a1c": "Observation?patient={{context.patientId}}&code=4548-4&_count=1&sort:desc=date",
321-
"user": "Practitioner/{{context.userId}}"
321+
"user": "{{context.userId}}"
322322
}
323323
}
324324
```

0 commit comments

Comments
 (0)