Search in sources :

Example 1 with EthnicityBundleFactory

use of org.hl7.gravity.refimpl.sdohexchange.fhir.factory.characteristic.EthnicityBundleFactory in project Gravity-SDOH-Exchange-RI by FHIR.

the class PersonalCharacteristicsService method createEthnicityBundleFactory.

private PersonalCharacteristicBundleFactory createEthnicityBundleFactory(NewPersonalCharacteristicDto dto) {
    EthnicityBundleFactory raceBundleFactory = new EthnicityBundleFactory(dto.getType(), dto.getMethod());
    raceBundleFactory.setMethodDetail(dto.getMethodDetail());
    if (dto.getValue() != null) {
        raceBundleFactory.setValue(EthnicityCode.fromCode(dto.getValue()));
    }
    raceBundleFactory.setDetailedValues(dto.getDetailedValues());
    raceBundleFactory.setDescription(dto.getDescription());
    return raceBundleFactory;
}
Also used : EthnicityBundleFactory(org.hl7.gravity.refimpl.sdohexchange.fhir.factory.characteristic.EthnicityBundleFactory)

Aggregations

EthnicityBundleFactory (org.hl7.gravity.refimpl.sdohexchange.fhir.factory.characteristic.EthnicityBundleFactory)1