Understanding the difference between FHIR String_ vs String -


I'm trying to understand separately between the use of setText () / setLabel vs. SetTextSimple / setLabelSimple in FHIR reference implementation.

Will usage cases require the use of the String_ primitive type rather than the plain old setLabelSimple () approach? I have tried to look at many examples of usage, and I can really see why I support one another, as far as I can see, both do exactly the same way, and the value of the string_ object is a plain old The Java string object is also assigned anyway ...

What is the preferred method to use, which someone would suggest? And if so, why?

The FHER string has an extension and a XML id:

  & Lt; Text value = "[text value]" id = "[id]" & gt; & Lt; Extension url = "[url]" & gt; & Lt; Value [x] ... /> & Lt; / Extension & gt; & Lt; / Text & gt;  

String_ getText () gets a type in which there is a getValue (), and a getXmlId (), and a getExtension () that gives a list of extensions.

java.lang.String ignores the getTextSimple () ID and extension, and returns @ values ​​- this is a feature shortcut.

When will you use gettext () instead of GetTextSimple ()? Otherwise, when you want to deal with extensions or internal cross references, just use ... simple ().

(In fact, this is on my list of Todo on them, so that they can flip, and the Java string string getText (), and String_ getTextObject () or something else, as the Net Reference Executes)


Comments

Popular posts from this blog

Member with no value in F# -

java - Joda Time Interval Not returning what I expect -

c# - Showing a SelectedItem's Property -