Stream: shorthand
Topic: sushi: uri type
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
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.
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?
John Moehrke (Feb 01 2021 at 15:53):
is that an error from sushi? policy.uri should be allowed to be anything.
John Moehrke (Feb 01 2021 at 15:53):
it should be treated the same as attachment.uri
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
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"
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).
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
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)
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