Merge pull request #759 from hapifhir/R4B-datatypes-and-xml-cleanup
R4 b datatypes and xml cleanup
This commit is contained in:
commit
a3e8fca51a
|
@ -132,7 +132,9 @@ public class TypesUtilities {
|
||||||
res.add(new WildcardInformation("Annotation", TypeClassification.DATATYPE));
|
res.add(new WildcardInformation("Annotation", TypeClassification.DATATYPE));
|
||||||
res.add(new WildcardInformation("Attachment", TypeClassification.DATATYPE));
|
res.add(new WildcardInformation("Attachment", TypeClassification.DATATYPE));
|
||||||
res.add(new WildcardInformation("CodeableConcept", TypeClassification.DATATYPE));
|
res.add(new WildcardInformation("CodeableConcept", TypeClassification.DATATYPE));
|
||||||
|
if (!VersionUtilities.isR4BVer(version)) {
|
||||||
res.add(new WildcardInformation("CodeableReference", TypeClassification.DATATYPE));
|
res.add(new WildcardInformation("CodeableReference", TypeClassification.DATATYPE));
|
||||||
|
}
|
||||||
res.add(new WildcardInformation("Coding", TypeClassification.DATATYPE));
|
res.add(new WildcardInformation("Coding", TypeClassification.DATATYPE));
|
||||||
res.add(new WildcardInformation("ContactPoint", TypeClassification.DATATYPE));
|
res.add(new WildcardInformation("ContactPoint", TypeClassification.DATATYPE));
|
||||||
res.add(new WildcardInformation("Count", TypeClassification.DATATYPE));
|
res.add(new WildcardInformation("Count", TypeClassification.DATATYPE));
|
||||||
|
@ -145,7 +147,9 @@ public class TypesUtilities {
|
||||||
res.add(new WildcardInformation("Quantity", TypeClassification.DATATYPE));
|
res.add(new WildcardInformation("Quantity", TypeClassification.DATATYPE));
|
||||||
res.add(new WildcardInformation("Range", TypeClassification.DATATYPE));
|
res.add(new WildcardInformation("Range", TypeClassification.DATATYPE));
|
||||||
res.add(new WildcardInformation("Ratio", TypeClassification.DATATYPE));
|
res.add(new WildcardInformation("Ratio", TypeClassification.DATATYPE));
|
||||||
|
if (!VersionUtilities.isR4BVer(version)) {
|
||||||
res.add(new WildcardInformation("RatioRange", TypeClassification.DATATYPE));
|
res.add(new WildcardInformation("RatioRange", TypeClassification.DATATYPE));
|
||||||
|
}
|
||||||
res.add(new WildcardInformation("Reference", " - a reference to another resource", TypeClassification.DATATYPE));
|
res.add(new WildcardInformation("Reference", " - a reference to another resource", TypeClassification.DATATYPE));
|
||||||
res.add(new WildcardInformation("SampledData", TypeClassification.DATATYPE));
|
res.add(new WildcardInformation("SampledData", TypeClassification.DATATYPE));
|
||||||
res.add(new WildcardInformation("Signature", TypeClassification.DATATYPE));
|
res.add(new WildcardInformation("Signature", TypeClassification.DATATYPE));
|
||||||
|
|
|
@ -273,9 +273,9 @@ public class XMLUtil {
|
||||||
|
|
||||||
for (int i = 0; i < rawContent.length(); i++) {
|
for (int i = 0; i < rawContent.length(); i++) {
|
||||||
char ch = rawContent.charAt(i);
|
char ch = rawContent.charAt(i);
|
||||||
if (ch == '\'')
|
// We don't escape ' because our code always spits out attributes surrounded by "", which means
|
||||||
sb.append("'");
|
// it's not necessary to escape ' - and it's *much* less ugly and more bandwidth-efficient when we don't.
|
||||||
else if (ch == '&')
|
if (ch == '&')
|
||||||
sb.append("&");
|
sb.append("&");
|
||||||
else if (ch == '"')
|
else if (ch == '"')
|
||||||
sb.append(""");
|
sb.append(""");
|
||||||
|
|
Loading…
Reference in New Issue