(self)
return as_value_source(value_source_config)
Returns a ValueSource for building FHIR resources.
Returns a ValueSource for building FHIR resources.
Returns a ValueSource for building FHIR resources .
def get_value_source(self) -> ValueSource:
        """
        Returns a ValueSource for building FHIR resources.
        """
        if self.value_source_config:
            return as_value_source(self.value_source_config)

        if not (self.case_property and self.jsonpath):
            raise ConfigurationError(
                'Unable to set FHIR resource property value without case '
                'property and JSONPath.')
        value_source_config = {
            'case_property': self.case_property.name,
            'jsonpath': self.jsonpath,
        }
        if self.value_map:
            value_source_config['value_map'] = self.value_map
        return as_value_source(value_source_config)
def get_value_source ( self ) -> ValueSource : if self . value_source_config : return as_value_source ( self . value_source_config ) if not ( self . case_property and self . jsonpath ) : raise ConfigurationError ( 'Unable to set FHIR resource property value without case ' 'property and JSONPath.' ) value_source_config = { 'case_property' : self . case_property . name , 'jsonpath' : self . jsonpath , } if self . value_map : value_source_config [ 'value_map' ] = self . value_map return as_value_source ( value_source_config )