Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
AbstractPersonNameComposite |
|
| 1.0;1 |
1 | package ca.uhn.hl7v2.model.composite; | |
2 | ||
3 | import ca.uhn.hl7v2.model.AbstractType; | |
4 | import ca.uhn.hl7v2.model.Composite; | |
5 | import ca.uhn.hl7v2.model.Message; | |
6 | ||
7 | /** | |
8 | * NOT YET IN USE | |
9 | */ | |
10 | public abstract class AbstractPersonNameComposite extends AbstractType implements Composite { | |
11 | ||
12 | /** | |
13 | * Constructor | |
14 | */ | |
15 | public AbstractPersonNameComposite(Message theMessage) { | |
16 | 0 | super(theMessage); |
17 | 0 | } |
18 | ||
19 | ||
20 | // /** | |
21 | // * Returns the value as | |
22 | // */ | |
23 | // public String createPractitionerName(XCN practitioner) throws HL7Exception { | |
24 | // String prefix = practitioner.getPrefixEgDR().getValue(); | |
25 | // prefix = (prefix != null) ? prefix + ". " : ""; | |
26 | // String lname = practitioner.getFamilyName().getFn1_Surname().getValue(); | |
27 | // lname = (lname != null) ? lname + ", " : ""; | |
28 | // String fname = practitioner.getGivenName().getValue(); | |
29 | // fname = (fname != null) ? fname : ""; | |
30 | // String mname = practitioner.getSecondAndFurtherGivenNamesOrInitialsThereof().getValue(); | |
31 | // mname = (mname != null) ? " " + mname : ""; | |
32 | // String name = prefix + lname + fname + mname; | |
33 | // if (name.equals("")) { | |
34 | // name = null; | |
35 | // } | |
36 | // return name; | |
37 | // } | |
38 | } |