Class ModelGenerator
- java.lang.Object
-
- org.wso2.healthcare.integration.v2tofhir.util.ModelGenerator
-
public class ModelGenerator extends Object
Utility class related to FHIR resource model generation.
-
-
Constructor Summary
Constructors Constructor Description ModelGenerator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcopyTypeAttributes(org.hl7.fhir.r4.model.Type originalType, org.hl7.fhir.r4.model.Type copiedType)static org.hl7.fhir.r4.model.TypecreateDataType(String type, Map<String,String> configuredParams, org.wso2.healthcare.integration.fhir.config.FHIRConnectorContext fhirConnectorContext)static org.hl7.fhir.instance.model.api.IBaseResourcecreateResource(String type)static booleanisPrimitiveDataType(String dataType)static voidsaveFhirResourceToContext(String type, org.hl7.fhir.r4.model.Resource fhirResource, org.wso2.healthcare.integration.fhir.model.Resource targetResource)
-
-
-
Method Detail
-
createResource
public static org.hl7.fhir.instance.model.api.IBaseResource createResource(String type) throws V2ToFhirException
- Throws:
V2ToFhirException
-
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)
-
-