Class VersionConvertor_40_50


  • public class VersionConvertor_40_50
    extends Object
    Our conversion class needs to be able to handle all the base data-types in FHIR; Resources, DomainResource, Element
    • Method Detail

      • copyResource

        public void copyResource​(@Nonnull
                                 org.hl7.fhir.r4.model.Resource src,
                                 @Nonnull
                                 org.hl7.fhir.r5.model.Resource tgt)
                          throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • copyResource

        public void copyResource​(@Nonnull
                                 org.hl7.fhir.r5.model.Resource src,
                                 @Nonnull
                                 org.hl7.fhir.r4.model.Resource tgt)
                          throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • convertResource

        public org.hl7.fhir.r5.model.Resource convertResource​(@Nonnull
                                                              org.hl7.fhir.r4.model.Resource src)
                                                       throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • convertResource

        public org.hl7.fhir.r4.model.Resource convertResource​(@Nonnull
                                                              org.hl7.fhir.r5.model.Resource src)
                                                       throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • convertType

        public org.hl7.fhir.r5.model.DataType convertType​(@Nonnull
                                                          org.hl7.fhir.r4.model.Type src)
                                                   throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • convertType

        public org.hl7.fhir.r4.model.Type convertType​(@Nonnull
                                                      org.hl7.fhir.r5.model.DataType src)
                                               throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • copyDomainResource

        public void copyDomainResource​(@Nonnull
                                       org.hl7.fhir.r4.model.DomainResource src,
                                       @Nonnull
                                       org.hl7.fhir.r5.model.DomainResource tgt)
                                throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • copyDomainResource

        public void copyDomainResource​(@Nonnull
                                       org.hl7.fhir.r5.model.DomainResource src,
                                       @Nonnull
                                       org.hl7.fhir.r4.model.DomainResource tgt)
                                throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • copyElement

        public void copyElement​(@Nonnull
                                org.hl7.fhir.r4.model.Element src,
                                @Nonnull
                                org.hl7.fhir.r5.model.Element tgt,
                                String... var)
                         throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • copyElement

        public void copyElement​(@Nonnull
                                org.hl7.fhir.r5.model.Element src,
                                @Nonnull
                                org.hl7.fhir.r4.model.Element tgt,
                                String... var)
                         throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException