Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Order Manifest Supported Fields

FAQ

1.

...

Would it be possible to escape all special characters within a text at once? 

Ans: From OpenSpecimen v10.x, special characters are skilled automatically in default manifest templates. However, for earlier versions, you can use CDATA.to avoid the overhead of escaping each special character

Syntax

<![CDATA[Statement]]>

Demo exampleExample:

Expand
titleExample Code
Code Block
    <div>
      <ol style="font-size: 13px; padding-left: 13px;">
        <caption style="text-align: left; font-size: 13px; margin-left: 0px;"><u><b>Processing Notes:</b></u></caption>
        <li><![CDATA[Inequality Synmbols: >,<,>=,<=]]></li>
      </ol>
    </div>

2. Would it be possible to page break or start a new page? 

Ans: Yes. Please add the following HTML wherever you want a page break or new page should be started.

Syntax

<div style="page-break-after:always"></div>

Example:

Code Block
#foreach ($spmn in $allSpecimens)
      <div style="page-break-after: always;"></div>
        #if ($visit.extensionDetail.attrsMap.service_request && $spmn.lineage == 'New' && $spmn.collectionEvent.time && ($spmn.label.startsWith("P1") || $spmn.label.startsWith("P6")))
          <tr>
            <td class="label">First Name</td>
            <td>: <![CDATA[$cpr.participant.firstName]]></td>
          </tr>
          <tr>
            <td class="label">Last Name</td>
            <td>: <![CDATA[$cpr.participant.lastName]]></td>
          </tr>
          <tr>
              <td class="label">MRN</td>
              <td>: <![CDATA[$cpr.participant.empi]]></td>
          </tr>
          <tr>
              <td class="label">Date of Birth</td>
              <td>: $dateOnlyFmt.format($cpr.participant.birthDate)</td>
          </tr>
          <tr>
              <td class="label">Participant ID</td>
              <td>: <![CDATA[$cpr.ppid]]></td>
          </tr>
          <tr>
            <td class="label">PI Name</td>
            <td>: <![CDATA[$cp.principalInvestigator.firstName $cp.principalInvestigator.lastName]]></td>
          </tr> 
          <tr>
            <td class="label">PI Email</td>
            <td>: <![CDATA[$cp.principalInvestigator.emailAddress]]></td>
          </tr>
          #foreach ($request in $visit.extensionDetail.attrsMap.service_request)
              #if (($spmn.label.startsWith("P1") && $request.service_requested == 'DNA Extraction') || ($spmn.label.startsWith("P6") && $request.service_requested == 'PBMC Processing'))
                <tr>
                  <td class="label">Service Requested</td>
                  <td>: <![CDATA[$request.service_requested]]></td>
                </tr>
                <tr>
                  <td class="label">Number of tubes</td>
                  <td>: <![CDATA[$request.number_of_tubes]]></td>                 
                </tr>
                <tr>
                  <td class="label">Volume in each tube</td>
                  <td>: <![CDATA[$request.volume_in_each_tube2]]></td>
                </tr>
                <tr>
                  <td class="label">Collection Date</td>
                  <tr>: <![CDATA[$dateFmt.format($spmn.collectionEvent.time)]]></tr>
                </tr>
                #if ($request.comments)
                  <tr>
                    <td class="label">Comments</td>
                    <td>: <![CDATA[$request.comments]]></td>
                  </tr>
                #end
              #end
          #end	
          <tr>
            <td>----------------------------------------------------------------------------------</td>
            <td>-----------------------------------------</td>  
          </tr>				
        #end
    #end

View file
namenew_page_example.pdf