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:
1.0 KB
|
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.common.patientcorrelationfacade.dte.helpers;
|
---|
6 |
|
---|
7 | import gov.hhs.fha.nhinc.common.nhinccommon.QualifiedSubjectIdentifierType;
|
---|
8 | import org.hl7.v3.II;
|
---|
9 |
|
---|
10 | /**
|
---|
11 | *
|
---|
12 | * @author rayj
|
---|
13 | */
|
---|
14 | public class IIHelper {
|
---|
15 |
|
---|
16 | public static II IIFactoryCreateNull(String nullFlavor) {
|
---|
17 | II ii = new II();
|
---|
18 | ii.getNullFlavor().add(Constants.NullFlavor_NotAvailable);
|
---|
19 | return ii;
|
---|
20 | }
|
---|
21 |
|
---|
22 | public static II IIFactoryCreateNull() {
|
---|
23 | return IIFactoryCreateNull(Constants.NullFlavor_NotAvailable);
|
---|
24 | }
|
---|
25 |
|
---|
26 | public static II IIFactory(String root, String extension) {
|
---|
27 | II ii = new II();
|
---|
28 | ii.setExtension(extension);
|
---|
29 | ii.setRoot(root);
|
---|
30 | return ii;
|
---|
31 |
|
---|
32 | }
|
---|
33 |
|
---|
34 | public static II IIFactory(QualifiedSubjectIdentifierType qualifiedSubjectIdentifier) {
|
---|
35 | return IIFactory(qualifiedSubjectIdentifier.getAssigningAuthorityIdentifier(), qualifiedSubjectIdentifier.getSubjectIdentifier());
|
---|
36 | }
|
---|
37 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.