<commit_before>@import com.pharmpress.common.model.dmd.Vmp

@(vmp: Vmp)

@_main() {
  <div class="page-header">
  <h1>Virtual Medicinal Product</h1>
    </div>
  <table class="table table-striped">
    <tr><td>ID</td><td>@vmp.id</td></tr>
    <tr><td>Valid date</td><td>@vmp.validDate</td></tr>
    <tr><td>Previous ID</td><td>@vmp.idPrev</td></tr>
    <tr><td>Virtual therapeutic moiety</td><td>
      @if(vmp.vtmId.nonEmpty) {
        <a href="/vtm/@vmp.vtmId.get">@vmp.vtmId</a>
      }
    </td></tr>
    <tr><td>Invalid</td><td>@vmp.invalid</td></tr>

    <tr><td>Name                </td><td>@vmp.name               </td></tr>
    <tr><td>AbbrevName          </td><td>@vmp.abbrevName         </td></tr>
    <tr><td>BasisOfName         </td><td>@vmp.basisOfName        </td></tr>
    <tr><td>NameDate            </td><td>@vmp.nameDate           </td></tr>
    <tr><td>NamePrev            </td><td>@vmp.namePrev           </td></tr>
    <tr><td>BasisOfNamePrev     </td><td>@vmp.basisOfNamePrev    </td></tr>
    <tr><td>NameChangeReason    </td><td>@vmp.nameChangeReason   </td></tr>
    <tr><td>CombProd            </td><td>@vmp.combProd           </td></tr>
    <tr><td>PresStatus          </td><td>@vmp.presStatus         </td></tr>
    <tr><td>SugarFree           </td><td>@vmp.sugarFree          </td></tr>
    <tr><td>GlutenFree          </td><td>@vmp.glutenFree         </td></tr>
    <tr><td>PreservativeFree    </td><td>@vmp.preservativeFree   </td></tr>
    <tr><td>CfcFree             </td><td>@vmp.cfcFree            </td></tr>
    <tr><td>NonAvailable        </td><td>@vmp.nonAvailable       </td></tr>
    <tr><td>NonAvailableDate    </td><td>@vmp.nonAvailableDate   </td></tr>
    <tr><td>DfInd               </td><td>@vmp.dfInd              </td></tr>
    <tr><td>Udfs                </td><td>@vmp.udfs               </td></tr>
    <tr><td>UdfsUOM             </td><td>@vmp.udfsUOM            </td></tr>
    <tr><td>UnitDoseUOM         </td><td>@vmp.unitDoseUOM        </td></tr>
    <tr><td>OntDrugForm         </td><td>@vmp.ontDrugForm        </td></tr>
    <tr><td>DrugForm            </td><td>@vmp.drugForm.map(_.form)           </td></tr>
    <tr><td>DrugRoute           </td><td>@vmp.drugRoute.map(_.map(_.route).mkString(", "))          </td></tr>
  </table>

  @if(vmp.virtualProductIngredients.nonEmpty) {
    <h2>Virtual Product Ingredients</h2>
    <table class="table table-striped">
      <tr>
        <th>Substance</th>
        <th>Basis of strength</th>
        <th>Basis substance</th>
        <th>Strength numerator</th>
        <th>Strength numerator unit</th>
        <th>Strength denominator</th>
        <th>Strength denominator unit</th>
      </tr>
      @for(ingredient <- vmp.virtualProductIngredients.get) {
        <tr>
          <td>@ingredient.ingredientSubstance.name</td>
          <td>@ingredient.basisStrength</td>
          <td>@ingredient.basisSubstance.map(_.name)</td>
          <td>@ingredient.strengthNumeratorVal</td>
          <td>@ingredient.strengthNumeratorUOM</td>
          <td>@ingredient.strengthDenominatorVal</td>
          <td>@ingredient.strengthDenominatorUOM</td>
        </tr>
      }
    </table>
  }

  <h2>Controlled Drug Information</h2>
  <table class="table table-striped">
    <tr><td>Category</td><td>@vmp.controlDrugInfo.category</td></tr>
    <tr><td>Category date</td><td>@vmp.controlDrugInfo.categoryDate</td></tr>
    <tr><td>Previous category</td><td>@vmp.controlDrugInfo.categoryPrev</td></tr>
  </table>

  <h2>Actual Medicinal Products</h2>

}<commit_msg>VMPP view<commit_after>@import com.pharmpress.common.model.dmd.Vmp

@(vmp: Vmp)

@_main() {
  <div class="page-header">
  <h1>Virtual Medicinal Product</h1>
    </div>
  <table class="table table-striped">
    <tr><td>ID</td><td>@vmp.id</td></tr>
    <tr><td>Valid date</td><td>@vmp.validDate</td></tr>
    <tr><td>Previous ID</td><td>@vmp.idPrev</td></tr>
    <tr><td>Virtual therapeutic moiety</td><td>
      @if(vmp.vtmId.nonEmpty) {
        <a href="/vtm/@vmp.vtmId.get">@vmp.vtmId</a>
      }
    </td></tr>
    <tr><td>Invalid</td><td>@vmp.invalid</td></tr>

    <tr><td>Name                </td><td>@vmp.name               </td></tr>
    <tr><td>AbbrevName          </td><td>@vmp.abbrevName         </td></tr>
    <tr><td>BasisOfName         </td><td>@vmp.basisOfName        </td></tr>
    <tr><td>NameDate            </td><td>@vmp.nameDate           </td></tr>
    <tr><td>NamePrev            </td><td>@vmp.namePrev           </td></tr>
    <tr><td>BasisOfNamePrev     </td><td>@vmp.basisOfNamePrev    </td></tr>
    <tr><td>NameChangeReason    </td><td>@vmp.nameChangeReason   </td></tr>
    <tr><td>CombProd            </td><td>@vmp.combProd           </td></tr>
    <tr><td>PresStatus          </td><td>@vmp.presStatus         </td></tr>
    <tr><td>SugarFree           </td><td>@vmp.sugarFree          </td></tr>
    <tr><td>GlutenFree          </td><td>@vmp.glutenFree         </td></tr>
    <tr><td>PreservativeFree    </td><td>@vmp.preservativeFree   </td></tr>
    <tr><td>CfcFree             </td><td>@vmp.cfcFree            </td></tr>
    <tr><td>NonAvailable        </td><td>@vmp.nonAvailable       </td></tr>
    <tr><td>NonAvailableDate    </td><td>@vmp.nonAvailableDate   </td></tr>
    <tr><td>DfInd               </td><td>@vmp.dfInd              </td></tr>
    <tr><td>Udfs                </td><td>@vmp.udfs               </td></tr>
    <tr><td>UdfsUOM             </td><td>@vmp.udfsUOM            </td></tr>
    <tr><td>UnitDoseUOM         </td><td>@vmp.unitDoseUOM        </td></tr>
    <tr><td>OntDrugForm         </td><td>@vmp.ontDrugForm        </td></tr>
    <tr><td>DrugForm            </td><td>@vmp.drugForm.map(_.form)           </td></tr>
    <tr><td>DrugRoute           </td><td>@vmp.drugRoute.map(_.map(_.route).mkString(", "))          </td></tr>
  </table>

  @if(vmp.virtualProductIngredients.nonEmpty) {
    <h2>Virtual Product Ingredients</h2>
    <table class="table table-striped">
      <tr>
        <th>Substance</th>
        <th>Basis of strength</th>
        <th>Basis substance</th>
        <th>Strength numerator</th>
        <th>Strength numerator unit</th>
        <th>Strength denominator</th>
        <th>Strength denominator unit</th>
      </tr>
      @for(ingredient <- vmp.virtualProductIngredients.get) {
        <tr>
          <td>@ingredient.ingredientSubstance.name</td>
          <td>@ingredient.basisStrength</td>
          <td>@ingredient.basisSubstance.map(_.name)</td>
          <td>@ingredient.strengthNumeratorVal</td>
          <td>@ingredient.strengthNumeratorUOM</td>
          <td>@ingredient.strengthDenominatorVal</td>
          <td>@ingredient.strengthDenominatorUOM</td>
        </tr>
      }
    </table>
  }

  <h2>Controlled Drug Information</h2>
  <table class="table table-striped">
    <tr><td>Category</td><td>@vmp.controlDrugInfo.category</td></tr>
    <tr><td>Category date</td><td>@vmp.controlDrugInfo.categoryDate</td></tr>
    <tr><td>Previous category</td><td>@vmp.controlDrugInfo.categoryPrev</td></tr>
  </table>

  <h2>Actual Medicinal Products</h2>

  <h2>Virtual Medicinal Product Packs</h2>

}
{'fraction_non_alphanumeric': 0.2078195067264574, 'fraction_numerical': 0.002522421524663677, 'mean_word_length': 2.301110083256244, 'pattern_counts': {'":': 0, '<': 467, '<?xml version=': 0, '>': 465, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3281552', 'n_tokens_mistral': 2725, 'n_tokens_neox': 2726, 'n_words': 297}