{% for variable in globalVariables %} <{{variable}}> {{ this.DEFINE_HEADER_METADATA.get(variable.upper())[0] }} {% endfor %} {% if this.DEFINE_HEADER_METADATA.STANDARD[0] == "ADAM" %} Data Guide {% endif %} {% if this.DEFINE_HEADER_METADATA.STANDARD[0] == "SDTM" %} Annotated Case Report Form {% endif %} {% for i, row in this.COMPUTATION_METHOD.iterrows() %} {{ row.get('COMPUTATIONMETHOD') }} {% endfor %} {% for name, group in this.VALUELEVEL_METADATA.groupby('VALUELISTOID') %} {% for i, row in group.iterrows() %} {% endfor %} {% endfor %} {% for name, group in merge(this.TOC_METADATA, this.VARIABLE_METADATA, how='inner', left_on='NAME', right_on='DOMAIN').groupby('DOMAIN') %} {% for i, row in group.iterrows() %} {% endfor %} ./{{name}}.xpt {% endfor %} {% for i, row in this.VARIABLE_METADATA.iterrows() %} 0 %} SignificantDigits="{{row.get('SIGNIFICANTDIGITS')}}" {% endif %} {% if not pandas.isnull( row.get('DISPLAYFORMAT') ) %} def:DisplayFormat="{{row.get('DISPLAYFORMAT')}}" {% endif %} {% if not pandas.isnull( row.get('COMPUTATIONMETHODOID') ) %} def:ComputationMethodOID="{{row.get('COMPUTATIONMETHODOID')}}" {% endif %} {% if this.DEFINE_HEADER_METADATA.STANDARD[0] == "SDTM"%} Origin="{{row.get('ORIGIN')}}" Comment="{{row.get('COMMENT')}}" def:Label="{{row.get('LABEL')}}" {% endif %} > {% if not pandas.isnull( row.get('CODELISTNAME') ) %} {% endif %} {% if not pandas.isnull( row.get('VALUELISTOID') ) %} {% endif %} {% endfor %} {% for i, row in this.VALUELEVEL_METADATA.iterrows() %} 0 %} SignificantDigits="{{row.get('SIGNIFICANTDIGITS')}}" {% endif %} {% if not pandas.isnull( row.get('DISPLAYFORMAT') ) %} def:DisplayFormat="{{row.get('DISPLAYFORMAT')}}" {% endif %} {% if not pandas.isnull( row.get('COMPUTATIONMETHODOID') ) %} def:ComputationMethodOID="{{row.get('COMPUTATIONMETHODOID')}}" {% endif %} {% if this.DEFINE_HEADER_METADATA.STANDARD[0] == "SDTM"%} Origin="{{row.get('ORIGIN')}}" Comment="{{row.get('COMMENT')}}" def:Label="{{row.get('LABEL')}}" {% endif %} > {% if not pandas.isnull( row.get('CODELISTNAME') ) %} {% endif %} {% endfor %} {% for name, group in this.CODELISTS.groupby('CODELISTNAME') %} {% for i, row in group.iterrows() %} {% if pandas.isnull(row.get('CODELISTDICTIONARY')) %} {{row.get('TRANSLATED')}} {% endif %} {% if not pandas.isnull(row.get('CODELISTDICTIONARY')) %} {% endif %} {% endfor %} {% endfor %}