Stream: implementers
Topic: Structure Definition for a Resource
Brian Reinhold (Jan 20 2022 at 11:35):
Where can I get the StructureDefinition for one of the base resources like the Observation or Device?
Jose Costa Teixeira (Jan 20 2022 at 11:55):
in your local cache.
Jose Costa Teixeira (Jan 20 2022 at 11:56):
in windows:
%UserProfile%\.fhir\packages\hl7.fhir.r4.core#4.0.1
Oliver Egger (Jan 20 2022 at 11:57):
or as a download from here: http://hl7.org/fhir/downloads.html
Brian Reinhold (Jan 20 2022 at 12:14):
@Jose Costa Teixeira Thanks! Got it from the local package. I had downloaded from FHIR but hadn't found the right place yet. I was surprised it was all JSON and not xml.
Oliver Egger (Jan 20 2022 at 12:16):
you can get the xml here: http://hl7.org/fhir/definitions.xml.zip
Brian Reinhold (Jan 20 2022 at 13:05):
@Oliver Egger JSON works fine - its easier to read in raw form. I wanted to use the structure definition to use the IG publisher to render it in that nice form we are all used to. And it worked. I added the resource into my IG (not to keep it but just to play with it). The Devices group is contemplating defining a new Resource CommunicatingDevice which is specifically a communicating medical device. The communicating device is complex and its needs are confusing to all the other Device use cases (Which has become huge). By separating it out it will be easier for OO to manage and for the other users of Device to understand. They won't need to understand the many elements that are in the Device now that are specific for Communicating devices. The communication protocols are complex and not well understood outside the devices community (unfortunately) so its probably a good idea.
Brian Reinhold (Jan 20 2022 at 13:16):
@Oliver Egger Do you know how to flag an element in a structure definition as 'deprecated'? I'm searching through the ElementDefinition options and cannot find it. There is a lot to look through, though!
Jose Costa Teixeira (Jan 20 2022 at 13:30):
Brian Reinhold said:
Oliver Egger JSON works fine - its easier to read in raw form. I wanted to use the structure definition to use the IG publisher to render it in that nice form we are all used to. And it worked. I added the resource into my IG (not to keep it but just to play with it). The Devices group is contemplating defining a new Resource CommunicatingDevice which is specifically a communicating medical device. The communicating device is complex and its needs are confusing to all the other Device use cases (Which has become huge). By separating it out it will be easier for OO to manage and for the other users of Device to understand. They won't need to understand the many elements that are in the Device now that are specific for Communicating devices. The communication protocols are complex and not well understood outside the devices community (unfortunately) so its probably a good idea.
@Brian Reinhold why not make a simple dummy profile of Device? The Differential view should really be of help there
Chris Moesel (Jan 20 2022 at 13:46):
If you just need one or two of the SDs, I actually find it easier to go to the page in the FHIR spec and grab it from the JSON and/or XML links just below the snapshot/differential table:
image.png
Chris Moesel (Jan 20 2022 at 13:47):
That brings you to another doc page displaying the XML or JSON. But you can click the "Raw XML" or "Raw JSON" link from there to get the raw file.
Brian Reinhold (Jan 20 2022 at 14:07):
@Jose Costa Teixeira I have more or less done that. I have the Device which I modified to CommunicatingDevice and have displayed it in my IG. Everything that needs to be modified is there, including the support information. On the other hand, this is not the kind of stuff I have done (its about as far away from device communication protocols as you can get ...) so I will have growing pains. But if it happens we will have a plug'n'play insert for FMG
By the way, can you have a binding to a codeSystem or just a valueSet?
Jose Costa Teixeira (Jan 20 2022 at 14:15):
Binding is on ValueSet
Jose Costa Teixeira (Jan 20 2022 at 14:16):
I think if you look at sushi profiling you'll save tons of time
Brian Reinhold (Jan 20 2022 at 14:21):
Jose Costa Teixeira said:
I think if you look at sushi profiling you'll save tons of time
Sushi? Outside of being a Japanese staple I have never heard of this. Where can I find information about that? Just do a google search?
David Pyke (Jan 20 2022 at 14:22):
Sushi is the interpreter for FHIR ShortHand . All you want to know is here
Last updated: Apr 12 2022 at 19:14 UTC