Class ModelGenerator


  • public class ModelGenerator
    extends Object
    Utility class related to FHIR resource model generation.
    • Constructor Detail

      • ModelGenerator

        public ModelGenerator()
    • Method Detail

      • saveFhirResourceToContext

        public static void saveFhirResourceToContext​(String type,
                                                     org.hl7.fhir.r4.model.Resource fhirResource,
                                                     org.wso2.healthcare.integration.fhir.model.Resource targetResource)
                                              throws V2ToFhirException
        Throws:
        V2ToFhirException
      • isPrimitiveDataType

        public static boolean isPrimitiveDataType​(String dataType)
      • createDataType

        public static org.hl7.fhir.r4.model.Type createDataType​(String type,
                                                                Map<String,​String> configuredParams,
                                                                org.wso2.healthcare.integration.fhir.config.FHIRConnectorContext fhirConnectorContext)
                                                         throws org.wso2.healthcare.integration.fhir.FHIRConnectException
        Throws:
        org.wso2.healthcare.integration.fhir.FHIRConnectException
      • copyTypeAttributes

        public static void copyTypeAttributes​(org.hl7.fhir.r4.model.Type originalType,
                                              org.hl7.fhir.r4.model.Type copiedType)