Merge branch 'master' of https://github.com/hapifhir/org.hl7.fhir
This commit is contained in:
commit
084da8b576
|
@ -72,7 +72,7 @@ public class TerminologyClientR3 implements TerminologyClient {
|
||||||
@Override
|
@Override
|
||||||
public ValueSet expandValueset(ValueSet vs, Parameters p, Map<String, String> params) throws FHIRException {
|
public ValueSet expandValueset(ValueSet vs, Parameters p, Map<String, String> params) throws FHIRException {
|
||||||
org.hl7.fhir.dstu3.model.ValueSet vs2 = (org.hl7.fhir.dstu3.model.ValueSet) VersionConvertorFactory_30_50.convertResource(vs);
|
org.hl7.fhir.dstu3.model.ValueSet vs2 = (org.hl7.fhir.dstu3.model.ValueSet) VersionConvertorFactory_30_50.convertResource(vs);
|
||||||
org.hl7.fhir.dstu3.model.ExpansionProfile p2 = (org.hl7.fhir.dstu3.model.ExpansionProfile) VersionConvertorFactory_30_50.convertResource(p);
|
org.hl7.fhir.dstu3.model.Parameters p2 = (org.hl7.fhir.dstu3.model.Parameters) VersionConvertorFactory_30_50.convertResource(p);
|
||||||
vs2 = client.expandValueset(vs2, p2, params); // todo: second parameter
|
vs2 = client.expandValueset(vs2, p2, params); // todo: second parameter
|
||||||
return (ValueSet) VersionConvertorFactory_30_50.convertResource(vs2);
|
return (ValueSet) VersionConvertorFactory_30_50.convertResource(vs2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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