Stream: hapi
Topic: StructureDefinition in extension URIs
John D. Ament (Jun 10 2020 at 15:18):
Hi, I have a vendor who's looking for me to send extensions where the URI is of the format /StructureDefinition/<fieldName> . I noticed that HAPI FHIR serializes this as a full URL, but when I use just <fieldName> it serializes it as that name. Is this expected? Is there a configuration setting or something that would let me send it as /StructureDefinition/<fieldName>?
This is how I construct the extension right now (if it helps): Extension ed = new Extension("/StructureDefinition/expectedDischargeDate", new DateType(toDate(claimCase.getExpectedDischargeDate())));
Grahame Grieve (Jun 10 2020 at 19:58):
extension URIs should be absolute URLs not relative ones
John D. Ament (Jun 11 2020 at 13:48):
Hi Grahame, with that in mind, is there a known public URL that structure definitions should have?
Grahame Grieve (Jun 11 2020 at 19:46):
convention is something like [base]/StructureDefinition/[id] where [base] is a publicly facing web site that looks like (and acts like) a web server (HL7 website does). But that's just convention, though I like it
Last updated: Apr 12 2022 at 19:14 UTC