001package ca.uhn.hl7v2.model.composite;
002
003import ca.uhn.hl7v2.model.AbstractType;
004import ca.uhn.hl7v2.model.Composite;
005import ca.uhn.hl7v2.model.Message;
006
007/**
008 * NOT YET IN USE
009 */
010public abstract class AbstractPersonNameComposite extends AbstractType implements Composite {
011
012        /**
013         * Constructor
014         */
015        public AbstractPersonNameComposite(Message theMessage) {
016                super(theMessage);
017        }
018
019
020//      /**
021//       * Returns the value as 
022//       */
023//      public String createPractitionerName(XCN practitioner) throws HL7Exception {
024//              String prefix = practitioner.getPrefixEgDR().getValue();
025//              prefix = (prefix != null) ? prefix + ". " : "";
026//              String lname = practitioner.getFamilyName().getFn1_Surname().getValue();
027//              lname = (lname != null) ? lname + ", " : "";
028//              String fname = practitioner.getGivenName().getValue();
029//              fname = (fname != null) ? fname : "";
030//              String mname = practitioner.getSecondAndFurtherGivenNamesOrInitialsThereof().getValue();
031//              mname = (mname != null) ? " " + mname : "";
032//              String name = prefix + lname + fname + mname;
033//              if (name.equals("")) {
034//                      name = null;
035//              }
036//              return name;
037//      }
038}