Examples of parseDoubleValue()


Examples of org.apache.ctakes.drugner.DrugMention.parseDoubleValue()

                holdStrengthValue = holdStrengthValue.substring(0, spaceLocation);
              }

              if (holdStrengthValue != null
                  && holdStrengthValue.compareTo("") != 0)
                curStrengthValue = new Double(dm.parseDoubleValue(holdStrengthValue)).doubleValue();
              boolean findLowValue = true;

              if (relatedStatus[0].compareTo(DrugChangeStatusToken.INCREASE) == 0)
              {
                if (curStrengthValue > strengthValue)
View Full Code Here

Examples of org.apache.ctakes.drugner.DrugMention.parseDoubleValue()

          && priorDM.getStrengthElement().length() > 0)
      {
        int spacePosition = priorDM.getStrengthElement().indexOf(" ");
        if (spacePosition > 0)
        {
          strengthChange = new Double(priorDM.parseDoubleValue(priorDM.getStrengthElement().substring(0, spacePosition))).doubleValue();

        } else
        {
          strengthChange = new Double(priorDM.parseDoubleValue(priorDM.getStrengthElement())).doubleValue();
View Full Code Here

Examples of org.apache.ctakes.drugner.DrugMention.parseDoubleValue()

        {
          strengthChange = new Double(priorDM.parseDoubleValue(priorDM.getStrengthElement().substring(0, spacePosition))).doubleValue();

        } else
        {
          strengthChange = new Double(priorDM.parseDoubleValue(priorDM.getStrengthElement())).doubleValue();

        }
      }
      if (compareDM.getDosageElement() != null
          && compareDM.getDosageElement().compareTo("") != 0)
View Full Code Here

Examples of org.apache.ctakes.drugner.DrugMention.parseDoubleValue()

      {
        dosageChange = new Double(compareDM.parseDoubleValue(compareDM.getDosageElement())).doubleValue();
      } else if (priorDM.getDosageElement() != null
          && priorDM.getDosageElement().compareTo("") != 0)
      {
        dosageChange = new Double(priorDM.parseDoubleValue(priorDM.getDosageElement())).doubleValue();
      }
      if (compareDM.getFrequencyElement() != null
          && compareDM.getFrequencyElement().compareTo("") != 0)
      {
        frequencyChange = new Double(compareDM.parseDoubleValue(compareDM.getFrequencyElement())).doubleValue();
View Full Code Here

Examples of org.apache.ctakes.drugner.DrugMention.parseDoubleValue()

      {
        frequencyChange = new Double(compareDM.parseDoubleValue(compareDM.getFrequencyElement())).doubleValue();
      } else if (priorDM.getFrequencyElement() != null
          && priorDM.getFrequencyElement().compareTo("") != 0)
      {
        frequencyChange = new Double(priorDM.parseDoubleValue(priorDM.getFrequencyElement())).doubleValue();
      }

      double strengthBefore = 1;
      double dosageBefore = 1;
      double frequencyBefore = 1;
View Full Code Here

Examples of org.apache.ctakes.drugner.DrugMention.parseDoubleValue()

      if (priorDM.getStrengthElement() != null
          && priorDM.getStrengthElement().compareTo("") != 0
          && priorDM.getStrengthElement().length() > 0)
      {
        strengthBefore = new Double(priorDM.parseDoubleValue(priorDM.getStrengthElement())).doubleValue();
        tokenDrugNER.setStrength(priorDM.getStrengthElement());
        tokenDrugNER.setStrengthBegin(priorDM.getStrengthBegin());
        tokenDrugNER.setStrengthEnd(priorDM.getStrengthEnd());
        tokenDrugNER.setStrengthUnit(priorDM.getStrengthUnitElement());
        tokenDrugNER.setSuBegin(priorDM.getStrengthUnitBegin());
View Full Code Here

Examples of org.apache.ctakes.drugner.DrugMention.parseDoubleValue()

        }
        int spacePosition = hyphString.indexOf(" ");
        if (spacePosition > 0)
        {
          hyphString = hyphString.substring(0, spacePosition);
          strengthBefore = new Double(priorDM.parseDoubleValue(priorDM.convertFromTextToNum(hyphString))).doubleValue();
          handledSeparator = true;
        }
        if (!handledSeparator)
          strengthBefore = new Double(compareDM.parseDoubleValue(tokenDrugNER.getStrength())).doubleValue();
      }
View Full Code Here

Examples of org.apache.ctakes.drugner.DrugMention.parseDoubleValue()

        dosageBefore = new Double(compareDM.parseDoubleValue(tokenDrugNER.getDosage())).doubleValue();
      }
      if (priorDM.getFrequencyElement() != null
          && priorDM.getFrequencyElement().compareTo("") != 0)
      {
        frequencyBefore = new Double(priorDM.parseDoubleValue(priorDM.getFrequencyElement())).doubleValue();
        tokenDrugNER.setFrequency(priorDM.getFrequencyElement());

      } else if (tokenDrugNER.getFrequency() != null
          && tokenDrugNER.getFrequency().compareTo("") != 0)
      {
View Full Code Here

Examples of org.apache.ctakes.drugner.DrugMention.parseDoubleValue()

                holdStrengthValue = holdStrengthValue.substring(0, spaceLocation);
              }

              if (holdStrengthValue != null
                  && holdStrengthValue.compareTo("") != 0)
                curStrengthValue = new Double(dm.parseDoubleValue(holdStrengthValue)).doubleValue();
              boolean findLowValue = true;

              if (relatedStatus[0].compareTo(DrugChangeStatusToken.INCREASE) == 0)
              {
                if (curStrengthValue > strengthValue)
View Full Code Here

Examples of org.apache.ctakes.drugner.DrugMention.parseDoubleValue()

          && priorDM.getStrengthElement().length() > 0)
      {
        int spacePosition = priorDM.getStrengthElement().indexOf(" ");
        if (spacePosition > 0)
        {
          strengthChange = new Double(priorDM.parseDoubleValue(priorDM.getStrengthElement().substring(0, spacePosition))).doubleValue();

        } else
        {
          strengthChange = new Double(priorDM.parseDoubleValue(priorDM.getStrengthElement())).doubleValue();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.