(case)
return CaseDBXMLGenerator(case).get_element()
Returns a case element as in the casedb

    <case case_id="" case_type="" owner_id="" status="">
        <case_name/>
        <date_opened/>
        <last_modified/>
        <case_property />
        <index>
            <parent case_type="" relationship="">id</parent>
        </index>
        <attachment>
            <a12345 />
        </attachment>
    </case>
    https://github.com/dimagi/commcare/wiki/casedb
Returns a case element as in the casedb
Returns a case element as in the casedb
def get_casedb_element(case):
    """
    Returns a case element as in the casedb

    <case case_id="" case_type="" owner_id="" status="">
        <case_name/>
        <date_opened/>
        <last_modified/>
        <case_property />
        <index>
            <parent case_type="" relationship="">id</parent>
        </index>
        <attachment>
            <a12345 />
        </attachment>
    </case>
    https://github.com/dimagi/commcare/wiki/casedb
    """
    return CaseDBXMLGenerator(case).get_element()
def get_casedb_element ( case ) : return CaseDBXMLGenerator ( case ) . get_element ( )