Stream: shorthand
Topic: OperationDefinition
Peter Robinson (Sep 09 2021 at 17:30):
Hi everybody,
I am wondering if there is a good tutorial anywhere for how to use the OperationDefinition in FSH. It is mentioned here but not explained (https://build.fhir.org/ig/HL7/fhir-shorthand/overview.html). I have been studying the mCode IG (https://github.com/HL7/fhir-mCODE-ig) and see that there is a ruleset
RuleSet: BundleEntry(name, min, max, short, def, class)
- entry contains {name} {min}..{max} MS
- entry[{name}] ^short = "{short}"
- entry[{name}] ^definition = "{def}"
- entry[{name}].resource only {class}
That appears to be using an OperationDefinition to create a Bundle that contains all of the resources needed to represent a cancer patient. I would like to do something similar for the Phenopackets IG (https://github.com/phenopackets/core-ig) but cannot find documentation/tutorial material.
Chris Moesel (Sep 09 2021 at 18:21):
OperationDefinition is a FHIR resource type and is not mentioned in that mCODE example you pasted. Is that what you really mean? Or do you mean to ask about Parameterized RuleSets? If the latter, then checkout that link. You can also see some examples on FSH Online if you click "FSH Examples", then "Rule Sets" --> "Parameterized".
If you really are wanting to define a FHIR OperationDefinition resource instance, then I don't have any examples of that on hand, but you would probably use the parameterized ruleset approach to reduce as much boilerplate as you can.
Paul Denning (Sep 09 2021 at 18:56):
https://github.com/HL7/fhir-mCODE-ig/blob/master/input/fsh/DEF_Operations.fsh#L41-L46 shows the output Bundle. The .documentation states what that bundle should conform to.
Peter Robinson (Sep 09 2021 at 19:58):
Thanks, that's helpful, I will study these two resources.
Chris Moesel (Sep 09 2021 at 21:30):
Ah, I see, @Paul Denning. Thanks for the additional context.
Last updated: Apr 12 2022 at 19:14 UTC