Examples of StaticDef


Examples of ca.uhn.hl7v2.conf.spec.message.StaticDef

    profile.setHL7Version(root.getAttribute("HL7Version"));

    // get static definition
    NodeList nl = root.getElementsByTagName("HL7v2xStaticDef");
    Element staticDef = (Element) nl.item(0);
    StaticDef sd = parseStaticProfile(staticDef);
    profile.setMessage(sd);
    return profile;
  }
View Full Code Here

Examples of ca.uhn.hl7v2.conf.spec.message.StaticDef

    profile.setHL7Version(root.getAttribute("HL7Version"));

    // get static definition
    NodeList nl = root.getElementsByTagName("HL7v2xStaticDef");
    Element staticDef = (Element) nl.item(0);
    StaticDef sd = parseStaticProfile(staticDef);
    profile.setMessage(sd);
    return profile;
  }
View Full Code Here

Examples of ca.uhn.hl7v2.conf.spec.message.StaticDef

    profile.setMessage(sd);
    return profile;
  }

  private StaticDef parseStaticProfile(Element elem) throws ProfileException {
    StaticDef message = new StaticDef();
    message.setMsgType(elem.getAttribute("MsgType"));
    message.setEventType(elem.getAttribute("EventType"));
    message.setMsgStructID(elem.getAttribute("MsgStructID"));
    message.setOrderControl(elem.getAttribute("OrderControl"));
    message.setEventDesc(elem.getAttribute("EventDesc"));
    message.setIdentifier(elem.getAttribute("identifier"));
    message.setRole(elem.getAttribute("role"));

    Element md = getFirstElementByTagName("MetaData", elem);
    if (md != null)
      message.setMetaData(parseMetaData(md));

    message.setImpNote(getValueOfFirstElement("ImpNote", elem));
    message.setDescription(getValueOfFirstElement("Description", elem));
    message.setReference(getValueOfFirstElement("Reference", elem));

    parseChildren(message, elem);
    return message;
  }
View Full Code Here

Examples of ca.uhn.hl7v2.conf.spec.message.StaticDef

    profile.setHL7Version(root.getAttribute("HL7Version"));

    // get static definition
    NodeList nl = root.getElementsByTagName("HL7v2xStaticDef");
    Element staticDef = (Element) nl.item(0);
    StaticDef sd = parseStaticProfile(staticDef);
    profile.setMessage(sd);
    return profile;
  }
View Full Code Here

Examples of ca.uhn.hl7v2.conf.spec.message.StaticDef

    }

    // get static definition
    NodeList nl = root.getElementsByTagName("HL7v2xStaticDef");
    Element staticDef = (Element) nl.item(0);
    StaticDef sd = parseStaticProfile(staticDef);
    profile.setMessage(sd);
    return profile;
  }
View Full Code Here

Examples of ca.uhn.hl7v2.conf.spec.message.StaticDef

    profile.setMessage(sd);
    return profile;
  }

  private StaticDef parseStaticProfile(Element elem) throws ProfileException {
    StaticDef message = new StaticDef();
    message.setMsgType(elem.getAttribute("MsgType"));
    message.setEventType(elem.getAttribute("EventType"));
    message.setMsgStructID(elem.getAttribute("MsgStructID"));
    message.setOrderControl(elem.getAttribute("OrderControl"));
    message.setEventDesc(elem.getAttribute("EventDesc"));
    message.setIdentifier(elem.getAttribute("identifier"));
    message.setRole(elem.getAttribute("role"));

    Element md = getFirstElementByTagName("MetaData", elem);
    if (md != null)
      message.setMetaData(parseMetaData(md));

    message.setImpNote(getValueOfFirstElement("ImpNote", elem));
    message.setDescription(getValueOfFirstElement("Description", elem));
    message.setReference(getValueOfFirstElement("Reference", elem));

    parseChildren(message, elem);
    return message;
  }
View Full Code Here

Examples of ca.uhn.hl7v2.conf.spec.message.StaticDef

    profile.setHL7Version(root.getAttribute("HL7Version"));

    // get static definition
    NodeList nl = root.getElementsByTagName("HL7v2xStaticDef");
    Element staticDef = (Element) nl.item(0);
    StaticDef sd = parseStaticProfile(staticDef);
    profile.setMessage(sd);
    return profile;
  }
View Full Code Here

Examples of ca.uhn.hl7v2.conf.spec.message.StaticDef

    }
   
    // get static definition
    NodeList nl = root.getElementsByTagName("HL7v2xStaticDef");
    Element staticDef = (Element) nl.item(0);
    StaticDef sd = parseStaticProfile(staticDef);
    profile.setMessage(sd);
    return profile;
  }
View Full Code Here

Examples of ca.uhn.hl7v2.conf.spec.message.StaticDef

    profile.setMessage(sd);
    return profile;
  }

  private StaticDef parseStaticProfile(Element elem) throws ProfileException {
    StaticDef message = new StaticDef();
    message.setMsgType(elem.getAttribute("MsgType"));
    message.setEventType(elem.getAttribute("EventType"));
    message.setMsgStructID(elem.getAttribute("MsgStructID"));
    message.setOrderControl(elem.getAttribute("OrderControl"));
    message.setEventDesc(elem.getAttribute("EventDesc"));
    message.setIdentifier(elem.getAttribute("identifier"));
    message.setRole(elem.getAttribute("role"));

    Element md = getFirstElementByTagName("MetaData", elem);
    if (md != null)
      message.setMetaData(parseMetaData(md));

    message.setImpNote(getValueOfFirstElement("ImpNote", elem));
    message.setDescription(getValueOfFirstElement("Description", elem));
    message.setReference(getValueOfFirstElement("Reference", elem));

    parseChildren(message, elem);
    return message;
  }
View Full Code Here

Examples of ca.uhn.hl7v2.conf.spec.message.StaticDef

     * @param message New value of property message.
     *
     * @throws ProfileException
     */
    public void setMessage(StaticDef message) throws ProfileException {
        StaticDef oldMessage = this.message;
        try {
            vetoableChangeSupport.fireVetoableChange("message", oldMessage, message);
        } catch (Exception e) {
            throw new ProfileException(null, e);
        }
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.