Forum Discussion

RebeccaKnecht__'s avatar
RebeccaKnecht__
Qrew Member
9 months ago

Formula Code Page

See attached, Reading results and signaure read INvalid when no selection is made in the field associated. Can I have it so it is just blank if no selection is made and fills in when one is?

Example: Patient receives this form and it should be blank so someone can fill it out and fax it back to us. However sometimes our employees fill it out electrronically so in that case I want it to be filled in with our employees info. SO I want it blank when not fille dout but pull the field selection when it is.

Code for that section is as follows

<div class="col-3 bold underline">PPD TEST</div>
        <div class="col-3 ">LOT # {{$ctrl.ppdLot}}</div>
        <div class="col-6">EXP # {{$ctrl.ppdExp}}</div>
      <div class="col-3">TB(PPD) Administered by: </div><div class="col-2">Left Arm <span ng-show="$ctrl.ppdArm === 'Left Arm'">&#x2713</span> </div> <div class="col-6">Right Arm  <span ng-show="$ctrl.ppdArm === 'Right Arm'">&#x2713</span> </div>
<div class="col-3"> Date: {{$ctrl.ppdDate}} </div> <div class="col-8"> Time: {{$ctrl.ppdTime}} </div> 
  <div class="col-3">Administered By:</div>
<div class="col-4 bottom-b bold"> {{$ctrl.administeredBy}}</div>
        <div class="col-1"></div>
        <div class="col-4 bottom-b bold" style="font-family: 'dancing script',cursive; font-size: 1.5em;"> {{$ctrl.administeredBy}}</div>
        <div class="col-3"></div>
        <div class="col-4 center">PRINT NAME</div>
        <div class="col-1 center">/</div>
        <div class="col-4">SIGNATURE</div>
      </div>
      <div class="row medical-personnel bold marg-t-50">
        <div class="col-5"><i>For Medical Personnel Reading Results</i></div>
   <div class="col-1.5">Date Read: </div>
        <div class="col-3 bottom-b">{{$ctrl.dateRead}}</div>
        <div class="col-4">
          RESULT:           Reaction: {{$ctrl.readReaction}}mm  </div>
 <div class="col-1.5">
         PPD is (Please indicate Positive or Negative): </div>
<div class="col-3 bottom-b">{{$ctrl.readResult}}</div>
        <div class="col-12">Print Name, License Number, and Location of Medical Personnel Reading Results:    </div>    
        <div class="col-12 bottom-b" style="height: 20px;">{{$ctrl.readBy}}</div>
        <div class="col-12 bottom-b" style="height: 20px;"></div>
        <div class="col-4">Signature of Medical Personnel Reading Results:</div>
        <div class="col-6 bottom-b bold" style="font-family: 'dancing script',cursive; font-size: 1.5em;"> {{$ctrl.readBy}}</div>
        
      </div>
      <div class="row marg-t-50">
        <div class="col-6 center bold">
          FAX RESULTS TO: (813) 876-0653<br>
          OR<br>
          EMAIL TO: pinellas@lifescanwellness.com
        </div>
        <div class="col-6 ">
          Medical Director<br>
          Anthony L. Capasso, M.D.
        </div>
      </div>
    </div>
    <script>
      angular
        .module("ppd", [])
        .controller("AppCtrl", AppController)
        .service("QBService", QBService)
        .filter("trust", [
          "$sce",
          function ($sce) {
            return function (htmlCode) {
              return $sce.trustAsHtml(htmlCode);
            };
          }
        ]);
      function AppController($scope, $q, QBService) {
        var self = this;
        self.employer = BaseHelpers.getUrlParam("employer");
        self.examDate = BaseHelpers.getUrlParam("examDate");
        self.patientName = BaseHelpers.getUrlParam("patientName");
        self.exposedToTB = BaseHelpers.getUrlParam("exposedToTB")
        self.tbVaccine = BaseHelpers.getUrlParam("tbVaccine")
        self.ppdSkinText = BaseHelpers.getUrlParam("ppdSkinText")
        self.tbYear = BaseHelpers.getUrlParam("tbYear")
        self.tbTreatment = BaseHelpers.getUrlParam("tbTreatment")
        self.tbMedicine = BaseHelpers.getUrlParam("tbMedicine")
        self.ppdLot = BaseHelpers.getUrlParam("ppdLot")
        self.ppdExp = BaseHelpers.getUrlParam("ppdExp")
        self.ppdArm = BaseHelpers.getUrlParam("ppdArm")
        self.ppdDate = BaseHelpers.getUrlParam("ppdDate")
        self.ppdTime = BaseHelpers.getUrlParam("ppdTime")
        self.administeredBy = BaseHelpers.getUrlParam("administeredBy")
self.dateRead = BaseHelpers.getUrlParam("dateRead")
self.readBy = BaseHelpers.getUrlParam("readBy")
self.readResult = BaseHelpers.getUrlParam("readResult")
self.readReaction = BaseHelpers.getUrlParam("readReaction")
      }
      function QBService($q) {var self = this;
      }
    </script>
  </body>
</html>


------------------------------
Rebecca Knecht, MS, ACSM-CEP
------------------------------
No RepliesBe the first to reply