FHIR Chat · standard extensions definition · committers

Stream: committers

Topic: standard extensions definition


view this post on Zulip Jose Costa Teixeira (Apr 21 2021 at 23:00):

Where is the source for the standard extension definitions in the core spec?

view this post on Zulip Grahame Grieve (Apr 21 2021 at 23:19):

in the core spec

view this post on Zulip Lloyd McKenzie (Apr 21 2021 at 23:39):

Are you looking for the folder for a specific set of extensions? Resource-specific ones are in the resource folder. General ones are in the profiles folder

view this post on Zulip Jose Costa Teixeira (Apr 22 2021 at 07:05):

Thanks, I was looking for structuredefs, I found the spreadsheet.
How can I change the context of an extension? I need to add SupplyRequest to the replaces extension, but the spreadsheet has this
image.png

view this post on Zulip Lloyd McKenzie (Apr 22 2021 at 19:04):

See if you can find an example where multiple contexts are listed (or maybe the flyover help at the top will tell you) to figure out whether it's a comma or semi-colon separator. Just put in the separator and your additional context. If that doesn't work then holler again and we'll have to debug.

view this post on Zulip Jose Costa Teixeira (Apr 22 2021 at 19:23):

that is the issue - the other extensions have an explicit context, this one has %canonicals

view this post on Zulip Jose Costa Teixeira (Apr 22 2021 at 19:23):

image.png

view this post on Zulip Lloyd McKenzie (Apr 22 2021 at 19:32):

Have you tried %canonicals;SupplyRequest?

view this post on Zulip Jose Costa Teixeira (Apr 22 2021 at 19:36):

just did, that causes an explosion:

Exception in thread "main" java.lang.Error: The element context '%canonicals' is not valid @ general-extensions-spreadsheet.xml
        at org.hl7.fhir.definitions.model.Definitions.checkContextValid(Definitions.java:579)
        at org.hl7.fhir.definitions.parsers.spreadsheets.OldSpreadsheetParser.processExtension(OldSpreadsheetParser.java:2198)
        at org.hl7.fhir.definitions.parsers.spreadsheets.OldSpreadsheetParser.parseConformancePackage(OldSpreadsheetParser.java:1459)
        at org.hl7.fhir.definitions.parsers.SourceParser.loadConformancePackages(SourceParser.java:940)
        at org.hl7.fhir.definitions.parsers.SourceParser.parse(SourceParser.java:308)
        at org.hl7.fhir.tools.publisher.Publisher.execute(Publisher.java:580)
        at org.hl7.fhir.tools.publisher.Publisher.main(Publisher.java:473)

view this post on Zulip Lloyd McKenzie (Apr 22 2021 at 20:15):

@Grahame Grieve

view this post on Zulip Lloyd McKenzie (Apr 22 2021 at 20:15):

(Note - don't expect a response until Tuesday)

view this post on Zulip Jose Costa Teixeira (Apr 29 2021 at 17:12):

@Grahame Grieve how do I add another resource (in this case SupplyRequest) to the context of this extension, where it says "%canonicals"?

image.png

view this post on Zulip Grahame Grieve (Apr 29 2021 at 20:17):

you can't

view this post on Zulip Grahame Grieve (Apr 29 2021 at 20:18):

but I don't think this is valid at all anymore

view this post on Zulip Jose Costa Teixeira (Apr 29 2021 at 22:17):

How can i apply this? https://jira.hl7.org/browse/FHIR-26950 : add SupplyRequest to the context of extension "replaces"
Where are the extension definitions? I presumed it is source/profiles/general-extensions-spreadsheet.xml

view this post on Zulip Grahame Grieve (Apr 29 2021 at 22:45):

I'll have to

view this post on Zulip Jose Costa Teixeira (Jun 11 2021 at 10:28):

just an update: Nevermind, I was looking at the wrong extension


Last updated: Apr 12 2022 at 19:14 UTC