Stream: implementers
Topic: System and Code
Medi Harsini (Sep 01 2020 at 10:15):
How do we define a code and system together in one canonical reference? something like systemURI/Code ... on a different note and on the case of conditional GET on finding something based on combination of system and code.. How does that get queried?
Gino Canessa (Sep 01 2020 at 15:12):
Hi Medi, conditional read does not take arbitrary parameters, for that you want to use search. On the search page, the discussion of tokens includes the syntax you are looking for, specifically [parameter]=[system]|[code]
.
Medi Harsini (Sep 02 2020 at 18:43):
@Gino Canessa Thanks. Can we use the same pattern for Identifier system and Identifier Value like [parameter]=[system]|[value] ??
Gino Canessa (Sep 02 2020 at 19:07):
No problem. Yes, that is the syntax for identifier (search parameter types specifies that identifier searches as a token). There are examples in various sections of the search document that use it (e.g., [base]/Observation?patient.identifier=http://example.com/fhir/identifier/mrn|123456
).
Medi Harsini (Sep 02 2020 at 19:32):
I like that even better than with the :oType... So technically [base]/resource?indetifier=[system]|[value] rather than [base]/resource?:oType=[system]|[value] not sure why oType is really needed
@Gino Canessa on your example we dont even have patient.identifer on the observation.. we have observation.identifier... Can you please explain why it says like that?
ryan moehrke (Sep 02 2020 at 22:32):
I'm not sure why the example in the fhir search page uses :oType but the description of :of-type (which I'm assuming is the correct search modifier) explains that it's for use against Identifier.type.coding.system and .code not against just identifier.system and .value
Medi Harsini (Sep 02 2020 at 22:42):
Thanks @ryan moehrke I just gathered that right after post the Q... Is the rule applies on the Reference as well.
For example [base]/ServiceRequest?basedOn=http://mywebsite.co.uk/CarePlan/123 (when its a canonical reference) and [base]/ServiceRequest?basedOn:identifier=[system terminology system]/[code]|[value]
Medi Harsini (Sep 03 2020 at 21:39):
Can anyone plz confirm/help on the above ?
Lloyd McKenzie (Sep 03 2020 at 22:48):
I'm not really understanding your question. Can you re-phrase?
Medi Harsini (Sep 04 2020 at 01:27):
@Lloyd McKenzie Well, I merely want to understand how to search against a nested refrenced resource in both cases; Literal and Canonical (absolute) and I have put some examples as I thought to be true and wanted someone to confirm if thats looks corret:
Canonical : [base]/ServiceRequest?basedOn=http://mywebsite.co.uk/CarePlan/123
Logical: [base]/ServiceRequest?basedOn:identifier=[system]/[code]|[value]
on the latter [system] is the ..type.coding.system ....
if those two are correct, how do I then include identifer.system included in the 2nd example (logical reference search)
Lloyd McKenzie (Sep 04 2020 at 01:39):
The :identifier modifier searches based on identifier.system and or identifier.value - it doesn't use identifier.type. Searching by identifier.type is presently only possible for search parameters of type 'token', not those of type 'reference' and to do that, you need to use the modifier:of-type
Medi Harsini (Sep 08 2020 at 22:07):
Thanks @Lloyd McKenzie how does the rule get extended to something like Appointment.Participant.Actor.Organisation on canonical search query ?
Lloyd McKenzie (Sep 08 2020 at 22:50):
I'm not really understanding the question.
Medi Harsini (Sep 09 2020 at 00:08):
How do I structure a search query to query against the refrences which is nested like the example above
Would it be like base/Appointment?participant.actor=http://myserver.com/Organization/123 ? Would this be ok ?
Medi Harsini (Sep 09 2020 at 00:09):
How about the same search where the logical reference is provided, can we use :identifier in the example above
Lloyd McKenzie (Sep 09 2020 at 00:20):
You can use :identifier, but you need to specify the identifier system, not the type code.
Medi Harsini (Sep 09 2020 at 01:35):
Would the endpoint above looks good ? Can you check it with plz
Lloyd McKenzie (Sep 09 2020 at 02:18):
The search parameter would just be "actor", not "participant.actor". You'd have to appropriately escape the URL as well. Other than that, looks ok
Medi Harsini (Sep 09 2020 at 08:43):
Thanks @Lloyd McKenzie
Last updated: Apr 12 2022 at 19:14 UTC