(patient, importer, owner_id)
return CaseBlock.deprecated_init(
        create=True,
        case_id=case_id,
        owner_id=owner_id,
        case_type=importer.case_type,
        case_name=case_name,
        external_id=patient[importer.external_id_column],
        update=fields_to_update,
    )
Creates a new case with imported patient details.
Creates a new case with imported patient details.
Creates a new case with imported patient details .
def get_addpatient_caseblock(patient, importer, owner_id):
    """
    Creates a new case with imported patient details.
    """
    case_id = uuid.uuid4().hex
    case_name, fields_to_update = get_case_properties(patient, importer)
    return CaseBlock.deprecated_init(
        create=True,
        case_id=case_id,
        owner_id=owner_id,
        case_type=importer.case_type,
        case_name=case_name,
        external_id=patient[importer.external_id_column],
        update=fields_to_update,
    )
def get_addpatient_caseblock ( patient , importer , owner_id ) : case_id = uuid . uuid4 ( ) . hex case_name , fields_to_update = get_case_properties ( patient , importer ) return CaseBlock . deprecated_init ( create = True , case_id = case_id , owner_id = owner_id , case_type = importer . case_type , case_name = case_name , external_id = patient [ importer . external_id_column ] , update = fields_to_update , )