(info, external_id, repeater_id)
Set "external_id" property on the case represented by ``info``.
Set "external_id" property on the case represented by ``info``.
Set external_id property on the case represented by info .
def _set_external_id(info, external_id, repeater_id):
    """
    Set "external_id" property on the case represented by ``info``.
    """
    case_block = CaseBlock(
        case_id=info.case_id,
        external_id=external_id,
        create=False,
    )
    submit_case_blocks(
        [case_block.as_text()],
        info.domain,
        xmlns=XMLNS_FHIR,
        device_id=f'FHIRRepeater-{repeater_id}',
    )
    # If case was matched, set external_id to update remote resource
    info.extra_fields['external_id'] = external_id
def _set_external_id ( info , external_id , repeater_id ) : case_block = CaseBlock ( case_id = info . case_id , external_id = external_id , create = False , ) submit_case_blocks ( [ case_block . as_text ( ) ] , info . domain , xmlns = XMLNS_FHIR , device_id = f'FHIRRepeater-{repeater_id}' , ) # If case was matched, set external_id to update remote resource info . extra_fields [ 'external_id' ] = external_id