FHIR Chat · sushi: uri type · shorthand

Stream: shorthand

Topic: sushi: uri type


view this post on Zulip Patrick Werner (Feb 01 2021 at 15:29):

I'm currently profiling a Consent resource. And i want to fix policy.uri
* policy.uri = http://molit.eu/fhir/Consents/Datenspende/Einwilligungserklaerung_V1.0_Druck_3mm.pdf

view this post on Zulip Patrick Werner (Feb 01 2021 at 15:30):

this leads to the following error: error Cannot assign Instance at path policy.uri to element of type uri. Definition not found for Instance: http://molit.eu/fhir/Consents/Datenspende/Einwilligungserklaerung_V1.0_Druck_3mm.pdf.

view this post on Zulip Patrick Werner (Feb 01 2021 at 15:31):

So i assume sushi searches for this uri in its canonical uri internal repo and can't find it?

view this post on Zulip John Moehrke (Feb 01 2021 at 15:53):

is that an error from sushi? policy.uri should be allowed to be anything.

view this post on Zulip John Moehrke (Feb 01 2021 at 15:53):

it should be treated the same as attachment.uri

view this post on Zulip Patrick Werner (Feb 01 2021 at 15:54):

i think so. I guess sushi treats it as canonical uri and tries to resolve it how it is doing the same for CS/VS/SDs

view this post on Zulip Chris Moesel (Feb 01 2021 at 15:55):

@Patrick Werner -- assuming you're just trying to assign the URI as is, I think you need to wrap it in a string (like in FHIR serialization of URI):

* policy.uri = "http://molit.eu/fhir/Consents/Datenspende/Einwilligungserklaerung_V1.0_Druck_3mm.pdf"

view this post on Zulip John Moehrke (Feb 01 2021 at 15:55):

it should not be treated as a canonical. It is simply a URI. Most likely to be a URL, sometimes might be a Reference(Binary).

view this post on Zulip Patrick Werner (Feb 01 2021 at 15:55):

Chris Moesel said:

Patrick Werner -- assuming you're just trying to assign the URI as is, I think you need to wrap it in a string (like in FHIR serialization of URI):

* policy.uri = "http://molit.eu/fhir/Consents/Datenspende/Einwilligungserklaerung_V1.0_Druck_3mm.pdf"

already tried that

EDIT: tried again, works? I'll investigate

view this post on Zulip Chris Moesel (Feb 01 2021 at 15:58):

Yeah, I was about to say "works for me". The only variation to consider is if you want it to use patternUri:

* policy.uri = "http://molit.eu/fhir/Consents/Datenspende/Einwilligungserklaerung_V1.0_Druck_3mm.pdf"

or fixedUri:

* policy.uri = "http://molit.eu/fhir/Consents/Datenspende/Einwilligungserklaerung_V1.0_Druck_3mm.pdf" (exactly)

view this post on Zulip Patrick Werner (Feb 01 2021 at 16:01):

weird it works now. Sorry for the post, i guess this was caused by another issue on my side.


Last updated: Apr 12 2022 at 19:14 UTC