(
    case: Union[CommCareCase, CommCareCaseSQL],
    fhir_version: str = FHIR_VERSION_4_0_1,
)
return _build_fhir_resource(info, resource_type)
Builds a FHIR resource using data from ``case``. Returns ``None`` if
    mappings do not exist.

    Used by the FHIR API.
Builds a FHIR resource using data from ``case``. Returns ``None`` if
    mappings do not exist.
Builds a FHIR resource using data from case . Returns None if mappings do not exist .
def build_fhir_resource(
    case: Union[CommCareCase, CommCareCaseSQL],
    fhir_version: str = FHIR_VERSION_4_0_1,
) -> Optional[dict]:
    """
    Builds a FHIR resource using data from ``case``. Returns ``None`` if
    mappings do not exist.

    Used by the FHIR API.
    """
    resource_type = get_resource_type_or_none(case, fhir_version)
    if resource_type is None:
        return None
    info = get_case_trigger_info(case, resource_type)
    return _build_fhir_resource(info, resource_type)
def build_fhir_resource ( case : Union [ CommCareCase , CommCareCaseSQL ] , fhir_version : str = FHIR_VERSION_4_0_1 , ) -> Optional [ dict ] : resource_type = get_resource_type_or_none ( case , fhir_version ) if resource_type is None : return None info = get_case_trigger_info ( case , resource_type ) return _build_fhir_resource ( info , resource_type )