mirror of
https://github.com/hapifhir/org.hl7.fhir.core.git
synced 2025-02-10 14:54:46 +00:00
render target profiles on operation definition parameters
This commit is contained in:
parent
da5e389fd3
commit
0502234ba3
@ -4,6 +4,7 @@ import java.io.IOException;
|
|||||||
import java.io.UnsupportedEncodingException;
|
import java.io.UnsupportedEncodingException;
|
||||||
|
|
||||||
import org.hl7.fhir.exceptions.FHIRException;
|
import org.hl7.fhir.exceptions.FHIRException;
|
||||||
|
import org.hl7.fhir.r5.model.CanonicalType;
|
||||||
import org.hl7.fhir.r5.model.CodeType;
|
import org.hl7.fhir.r5.model.CodeType;
|
||||||
import org.hl7.fhir.r5.model.Enumeration;
|
import org.hl7.fhir.r5.model.Enumeration;
|
||||||
import org.hl7.fhir.r5.model.Enumerations.FHIRTypes;
|
import org.hl7.fhir.r5.model.Enumerations.FHIRTypes;
|
||||||
@ -141,6 +142,20 @@ public class OperationDefinitionRenderer extends TerminologyRenderer {
|
|||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
td.ah(sd.getWebPath()).tx(actualType);
|
td.ah(sd.getWebPath()).tx(actualType);
|
||||||
|
if (p.hasTargetProfile()) {
|
||||||
|
td.tx(" (");
|
||||||
|
boolean first = true;
|
||||||
|
for (CanonicalType tp : p.getTargetProfile()) {
|
||||||
|
if (first) { first = false;} else {td.tx(", ");};
|
||||||
|
StructureDefinition sdt = context.getWorker().fetchTypeDefinition(tp.asStringValue());
|
||||||
|
if (sdt == null || !sdt.hasWebPath()) {
|
||||||
|
td.code().tx(tp.asStringValue());
|
||||||
|
} else {
|
||||||
|
td.ah(sdt.getWebPath(), tp.asStringValue()).tx(sdt.present());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
td.tx(")");
|
||||||
|
}
|
||||||
if (p.hasSearchType()) {
|
if (p.hasSearchType()) {
|
||||||
td.br();
|
td.br();
|
||||||
td.tx("(");
|
td.tx("(");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user