fix version conversion for OperationDefinition
This commit is contained in:
parent
bd40310684
commit
42853db493
|
@ -316,6 +316,18 @@ public class VersionConvertor_30_50 {
|
|||
return tgt;
|
||||
}
|
||||
|
||||
public static org.hl7.fhir.r5.model.MarkdownType convertStringToMarkdown(org.hl7.fhir.dstu3.model.StringType src) throws FHIRException {
|
||||
org.hl7.fhir.r5.model.MarkdownType tgt = new org.hl7.fhir.r5.model.MarkdownType(src.getValue());
|
||||
copyElement(src, tgt);
|
||||
return tgt;
|
||||
}
|
||||
|
||||
public static org.hl7.fhir.dstu3.model.StringType convertMarkdownToString(org.hl7.fhir.r5.model.MarkdownType src) throws FHIRException {
|
||||
org.hl7.fhir.dstu3.model.StringType tgt = new org.hl7.fhir.dstu3.model.StringType(src.getValue());
|
||||
copyElement(src, tgt);
|
||||
return tgt;
|
||||
}
|
||||
|
||||
public static org.hl7.fhir.r5.model.TimeType convertTime(org.hl7.fhir.dstu3.model.TimeType src) throws FHIRException {
|
||||
org.hl7.fhir.r5.model.TimeType tgt = new org.hl7.fhir.r5.model.TimeType(src.getValue());
|
||||
copyElement(src, tgt);
|
||||
|
|
|
@ -49,7 +49,7 @@ public class OperationDefinition30_50 {
|
|||
if (src.hasCodeElement())
|
||||
tgt.setCodeElement((org.hl7.fhir.r5.model.CodeType) VersionConvertor_30_50.convertType(src.getCodeElement()));
|
||||
if (src.hasCommentElement())
|
||||
tgt.setCommentElement((org.hl7.fhir.r5.model.MarkdownType) VersionConvertor_30_50.convertType(src.getCommentElement()));
|
||||
tgt.setCommentElement(VersionConvertor_30_50.convertStringToMarkdown(src.getCommentElement()));
|
||||
if (src.hasBase())
|
||||
tgt.setBaseElement(VersionConvertor_30_50.convertReferenceToCanonical(src.getBase()));
|
||||
if (src.hasResource()) {
|
||||
|
@ -109,7 +109,7 @@ public class OperationDefinition30_50 {
|
|||
if (src.hasCodeElement())
|
||||
tgt.setCodeElement((org.hl7.fhir.dstu3.model.CodeType) VersionConvertor_30_50.convertType(src.getCodeElement()));
|
||||
if (src.hasCommentElement())
|
||||
tgt.setCommentElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_50.convertType(src.getCommentElement()));
|
||||
tgt.setCommentElement(VersionConvertor_30_50.convertMarkdownToString(src.getCommentElement()));
|
||||
if (src.hasBase())
|
||||
tgt.setBase(VersionConvertor_30_50.convertCanonicalToReference(src.getBaseElement()));
|
||||
if (src.hasResource()) {
|
||||
|
|
Loading…
Reference in New Issue