Last change
on this file since 507 was 507, checked in by George Lilly, 15 years ago |
NHIN gateway and adaptor for use on linux with VistA EHR and RPMS
|
File size:
729 bytes
|
Line | |
---|
1 | /*
|
---|
2 | * To change this template, choose Tools | Templates
|
---|
3 | * and open the template in the editor.
|
---|
4 | */
|
---|
5 | package gov.hhs.fha.nhinc.patientcorrelationservice.parsers.helpers;
|
---|
6 |
|
---|
7 | import org.hl7.v3.II;
|
---|
8 |
|
---|
9 | /**
|
---|
10 | *
|
---|
11 | * @author rayj
|
---|
12 | */
|
---|
13 | public class IIHelper {
|
---|
14 |
|
---|
15 | public static II IIFactoryCreateNull(String nullFlavor) {
|
---|
16 | II ii = new II();
|
---|
17 | ii.getNullFlavor().add(Constants.NullFlavor_NotAvailable);
|
---|
18 | return ii;
|
---|
19 | }
|
---|
20 |
|
---|
21 | public static II IIFactoryCreateNull() {
|
---|
22 | return IIFactoryCreateNull(Constants.NullFlavor_NotAvailable);
|
---|
23 | }
|
---|
24 |
|
---|
25 | public static II IIFactory(String root, String extension) {
|
---|
26 | II ii = new II();
|
---|
27 | ii.setExtension(extension);
|
---|
28 | ii.setRoot(root);
|
---|
29 | return ii;
|
---|
30 |
|
---|
31 | }
|
---|
32 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.