Produced by Araxis Merge on 3/1/2018 12:13:18 PM Central Standard Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | ehealth_xchange_cif.zip\NHIN_adapter\AdapterSubscriptionServiceWEB\src\main\java\gov\va\med\nhin\adapter\subscription\web\resource | EHXDocumentReference.java | Thu Feb 22 14:27:26 2018 UTC |
| 2 | ehealth_xchange_cif.zip\NHIN_adapter\AdapterSubscriptionServiceWEB\src\main\java\gov\va\med\nhin\adapter\subscription\web\resource | EHXDocumentReference.java | Tue Feb 27 14:30:14 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 7 | 252 |
| Changed | 6 | 12 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| Whitespace | |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
| 1 | /* | |
| 2 | * To chan ge this li cense head er, choose License H eaders in Project Pr operties. | |
| 3 | * To chan ge this te mplate fil e, choose Tools | Te mplates | |
| 4 | * and ope n the temp late in th e editor. | |
| 5 | */ | |
| 6 | package go v.va.med.n hin.adapte r.subscrip tion.web.r esource; | |
| 7 | ||
| 8 | import ca. uhn.fhir.m odel.api.a nnotation. Child; | |
| 9 | import ca. uhn.fhir.m odel.api.a nnotation. Descriptio n; | |
| 10 | import ca. uhn.fhir.m odel.api.a nnotation. Extension; | |
| 11 | import ca. uhn.fhir.m odel.api.a nnotation. ResourceDe f; | |
| 12 | import jav a.util.reg ex.Matcher ; | |
| 13 | import jav a.util.reg ex.Pattern ; | |
| 14 | import org .hl7.fhir. dstu3.mode l.Document Reference; | |
| 15 | import org .hl7.fhir. dstu3.mode l.Referenc e; | |
| 16 | import org .hl7.fhir. dstu3.mode l.StringTy pe; | |
| 17 | ||
| 18 | /** | |
| 19 | * | |
| 20 | * @author DN S VAZQUD | |
| 21 | */ | |
| 22 | @ResourceD ef(name = "DocumentR eference", profile = "http://e hx. DNS /Structure Definition /EHXDocume ntReferenc e") | |
| 23 | public cla ss EHXDocu mentRefere nce extend s Document Reference | |
| 24 | { | |
| 25 | @Child (name = "h omeCommuni tyId") | |
| 26 | @Extension (url = "ht tp://ehx. DNS /Structure Definition /EHXDocume nteReferen ce/homeCom munityId", definedLo cally = tr ue, isModi fier = fal se) | |
| 27 | @Descr iption(sho rtDefiniti on = "Home Community ID that p rovided do cument bei ng referen ced.") | |
| 28 | privat e StringTy pe homeCom munityId; | |
| 29 | ||
| 30 | @Child (name = "r epositoryU niqueId") | |
| 31 | @Extension (url = "ht tp://ehx. DNS /Structure Definition /EHXDocume nteReferen ce/reposit oryUniqueI d", define dLocally = true, isM odifier = false) | |
| 32 | @Descr iption(sho rtDefiniti on = "Repo sitory Uni que ID of referenced document. ") | |
| 33 | privat e StringTy pe reposit oryUniqueI d; | |
| 34 | ||
| 35 | @Child (name = "d ocumentUni queId") | |
| 36 | @Extension (url = "ht tp://ehx. DNS /Structure Definition /EHXDocume nteReferen ce/documen tUniqueId" , definedL ocally = t rue, isMod ifier = fa lse) | |
| 37 | @Descr iption(sho rtDefiniti on = "Docu ment Uniqu e ID of re ferenced d ocument.") | |
| 38 | privat e StringTy pe documen tUniqueId; | |
| 39 | ||
| 40 | @Child (name = "s ubscriptio n") | |
| 41 | @Extension (url = "ht tp://ehx. DNS /Structure Definition /EHXDocume nteReferen ce/subscri ption", de finedLocal ly = true, isModifie r = false) | |
| 42 | @Descr iption(sho rtDefiniti on = "Refe rence to s ubscriptio n which tr iggered th e creation of this D ocumentRef erence.") | |
| 43 | privat e Referenc e subscrip tion; | |
| 44 | ||
| 45 | public String ge tHomeCommu nityId() | |
| 46 | { | |
| 47 | re turn homeC ommunityId != null ? homeCommu nityId.asS tringValue () : null; | |
| 48 | } | |
| 49 | ||
| 50 | public void setH omeCommuni tyId(Strin g hcid) | |
| 51 | { | |
| 52 | ho meCommunit yId = new StringType (hcid); | |
| 53 | } | |
| 54 | ||
| 55 | public StringTyp e getHomeC ommunityId Element() | |
| 56 | { | |
| 57 | re turn homeC ommunityId ; | |
| 58 | } | |
| 59 | ||
| 60 | public void setH omeCommuni tyIdElemen t(StringTy pe homeCom munityId) | |
| 61 | { | |
| 62 | th is.homeCom munityId = homeCommu nityId; | |
| 63 | } | |
| 64 | ||
| 65 | public String ge tRepositor yUniqueId( ) | |
| 66 | { | |
| 67 | re turn repos itoryUniqu eId != nul l ? reposi toryUnique Id.asStrin gValue() : null; | |
| 68 | } | |
| 69 | ||
| 70 | public void setR epositoryU niqueId(St ring rid) | |
| 71 | { | |
| 72 | re positoryUn iqueId = n ew StringT ype(rid); | |
| 73 | } | |
| 74 | ||
| 75 | public StringTyp e getRepos itoryUniqu eIdElement () | |
| 76 | { | |
| 77 | re turn repos itoryUniqu eId; | |
| 78 | } | |
| 79 | ||
| 80 | public void setR epositoryU niqueIdEle ment(Strin gType repo sitoryUniq ueId) | |
| 81 | { | |
| 82 | th is.reposit oryUniqueI d = reposi toryUnique Id; | |
| 83 | } | |
| 84 | ||
| 85 | public String ge tDocumentU niqueId() | |
| 86 | { | |
| 87 | re turn docum entUniqueI d != null ? document UniqueId.a sStringVal ue() : nul l; | |
| 88 | } | |
| 89 | ||
| 90 | public void setD ocumentUni queId(Stri ng did) | |
| 91 | { | |
| 92 | do cumentUniq ueId = new StringTyp e(did); | |
| 93 | } | |
| 94 | ||
| 95 | public StringTyp e getDocum entUniqueI dElement() | |
| 96 | { | |
| 97 | re turn docum entUniqueI d; | |
| 98 | } | |
| 99 | ||
| 100 | public void setD ocumentUni queIdEleme nt(StringT ype docume ntUniqueId ) | |
| 101 | { | |
| 102 | th is.documen tUniqueId = document UniqueId; | |
| 103 | } | |
| 104 | ||
| 105 | public Reference getSubscr iption() | |
| 106 | { | |
| 107 | re turn subsc ription; | |
| 108 | } | |
| 109 | ||
| 110 | public void setS ubscriptio n(Referenc e subscrip tion) | |
| 111 | { | |
| 112 | th is.subscri ption = su bscription ; | |
| 113 | } | |
| 114 | ||
| 115 | public boolean h asPatientI D() | |
| 116 | { | |
| 117 | re turn null != getPati entID(); | |
| 118 | } | |
| 119 | ||
| 120 | public String ge tPatientID () | |
| 121 | { | |
| 122 | re turn getPa tientID(ge tSubject() .getRefere nce()); | |
| 123 | } | |
| 124 | ||
| 125 | public static St ring getPa tientID(St ring crite ria) | |
| 126 | { | |
| 127 | fi nal Patter n patienti d = Patter n.compile( "Patient/( \\d{10}V\\ d{6})"); | |
| 128 | ||
| 129 | Ma tcher m = patientid. matcher(cr iteria); | |
| 130 | re turn (m.ma tches() ? m.group(1) : null); | |
| 131 | } | |
| 132 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.