Stream: shorthand
Topic: ElementDefinition.comment
Kirstine Rosenbeck Gøeg (Sep 22 2020 at 10:39):
For each element defined in a profile, you have the "short", "definition", and "comment" attributes to explain the intended use of the attribute. I have noticed that sushi generate files with the resource standard-text in them. Can I access these attributes in my fsh-file? If yes, how?
Best regards,
Kirstine
Jose Costa Teixeira (Sep 22 2020 at 11:56):
Yes, use the escape syntax:
* element ^short = "some new short description"
(fixed the error)
Nick Freiter (Sep 22 2020 at 12:19):
As @Jose Costa Teixeira said, you do want to use the escape syntax. Here is the documentation on that: http://build.fhir.org/ig/HL7/fhir-shorthand/branches/master/reference.html#caret-paths. Note that in the example above, I think you'd want to do:
* element ^short = "some new short description"
without a .
before short.
Jose Costa Teixeira (Sep 22 2020 at 12:22):
thanks @Nick Freiter, obvioulsy I didn't check it and I made a mistake. Just fixed it
Kirstine Rosenbeck Gøeg (Sep 22 2020 at 14:34):
Thanks @Jose Costa Teixeira and @Nick Freiter ! It works splendidly. That I haven't been able to find it in the language reference is a little bit embarrassing though.
Nick Freiter (Sep 22 2020 at 14:37):
Happy to help. The language reference is a big doc, so no worries, we are here to help!
Last updated: Apr 12 2022 at 19:14 UTC