Stream: IG creation
Topic: Need example IG that includes defining custom operations
abhijeet badale (May 18 2020 at 09:20):
Hi... I Need example of R4 IG that includes defining custom operations for any resource using spreadsheet and registers it with IG.
Grahame Grieve told me that its in "SDC" IG which has example of such custom operation definition. Where I can find this ?
Jose Costa Teixeira (May 18 2020 at 09:43):
https://github.com/HL7/sdc/
https://build.fhir.org/ig/HL7/sdc/
abhijeet badale (May 18 2020 at 11:33):
Thank you for response. SDC was not helpful as I cant see any spreadsheet example in it for operations.
Can you give me another example where custom operations are defined for any resource using "...spreadsheet.xml" and registers it with IG ?
David Pyke (May 18 2020 at 12:48):
It is vastly easier and better to just use OperationDefinition as JSON or XML than do it in a spreadsheet.
Lloyd McKenzie (May 18 2020 at 15:23):
Agree. Operations in spreadsheets tends to be clunky (and I'm still a fan of spreadsheets for profiling)
abhijeet badale (May 18 2020 at 16:37):
@Lloyd McKenzie
I have some operations defined under "Operations" tab of my custom patient profile spreadsheet (as per mentioned on https://confluence.hl7.org/display/FHIR/FHIR+Spreadsheet+Authoring). It was working in DSTU2.
We are upgrading to R4 and taken R4Final branch from git.
But now in R4Final, publish throws exception that operations are "not supported anymore". I can see below in Publisher.java
private void produceIgOperations(ImplementationGuideDefn ig, Profile p) throws Exception {
throw new Error("not supported anymore");
}
Now how to define custom operations for resource using spreadsheet and how to register it with IG ? Any example would be helpful.
Lloyd McKenzie (May 18 2020 at 17:02):
To be honest, I'm not sure if you can anymore. Why not just define them using XML or JSON?
Grahame Grieve (May 18 2020 at 18:57):
@abhijeet badale you are thinking of this problem as "how do I keep doing what I am already doing " and you can't.
abhijeet badale (May 18 2020 at 19:30):
OK. I will give it a try with xml/json based operation definition. Can you guys give me another simple json/xml based example apart from sdc? And how to register with IG so that can be linked to specific resource.
Lloyd McKenzie (May 19 2020 at 01:30):
The IG publisher doesn't tie operations to profiles (and we don't publish 'resources' in IGs). There are many examples of operations in the core spec, all with XML and JSON (and TTL) definitions.
Last updated: Apr 12 2022 at 19:14 UTC