C# Class gov.va.medora.mdo.dao.vista.VistaPatientDao

Inheritance: IPatientDao
ファイルを表示 Open project: OSEHRA/mdo Class Usage Examples

Public Methods

Method Description
VistaPatientDao ( AbstractConnection cxn ) : System
addHomeData ( Patient patient ) : void
getActiveInsurance ( ) : string
getActiveInsurance ( string dfn ) : string
getCmor ( ) : string
getCmor ( string dfn ) : string
getConfidentiality ( ) : string>.KeyValuePair
getConfidentiality ( string dfn ) : string>.KeyValuePair
getCountyName ( string stateIen, string countyIen ) : string
getDeceasedDate ( ) : string
getDeceasedDate ( string dfn ) : string
getDemographics ( ) : DemographicSet
getDemographics ( string dfn ) : DemographicSet
getInpatientLocation ( ) : HospitalLocation
getInpatientLocation ( string dfn ) : HospitalLocation
getLastRecordNumber ( ) : string
getLocalPid ( string icn ) : string
getMOSReport ( Patient patient ) : TextReport
getOefOif ( ) : OEF_OIF[]
getOefOif ( string dfn ) : OEF_OIF[]
getPatientAssociates ( ) : PatientAssociate[]
getPatientAssociates ( string dfn ) : PatientAssociate[]
getPatientFlagNoteTitle ( string flagDefinitionId ) : string
getPatientFlagNoteTitle ( string dfn, string flagDefinitionId ) : string
getPatientFlagText ( string flagId ) : string
getPatientFlagText ( string dfn, string flagId ) : string
getPatientFlags ( ) : StringDictionary
getPatientFlags ( string dfn ) : StringDictionary
getPatientType ( string dfn ) : string
getPatientTypeValue ( string ien ) : string
getPatientTypes ( ) : StringDictionary
getPatientsByClinic ( string clinicIen ) : Patient[]
getPatientsByClinic ( string clinicIen, string fromDate, string toDate ) : Patient[]
getPatientsByProvider ( string duz ) : Patient[]
getPatientsBySpecialty ( string specialtyIen ) : Patient[]
getPatientsByTeam ( string teamIen ) : Patient[]
getPatientsByWard ( string wardIen ) : Patient[]
getPcpForPatient ( string dfn ) : string>.KeyValuePair
getPersonalPhones ( string dfn ) : string[]
getRatedDisabilities ( ) : RatedDisability[]
getRatedDisabilities ( string dfn ) : RatedDisability[]
getRemoteSiteIds ( ) : StringDictionary
getRemoteSiteIds ( string dfn ) : StringDictionary
getRemoteSites ( ) : Site[]
getRemoteSites ( string dfn ) : Site[]
getSiteIDs ( string dfn ) : SiteId[]
getStateIEN ( string stateAbbr ) : string
getStateName ( string ien ) : string
getTeam ( string dfn ) : Team Some bad data was found being returned in Boston for patient 105899 - "1^" is returned from the "$G(^DPT(" + 105899 + ",\"TYPE\"))" call above causing the subsequent getPatientTypeValue call to throw an exception. The call below seems to succeed for this patient and others. The only downside is for pre-BSE MDWS where we must switch context before executing this DDR call
getTreatingFacilityIds ( string pid ) : string>.Dictionary
hasPatient ( string dfn ) : bool
isTestPatient ( ) : bool

Is the Patient record a test patient (not a real patient), just a patient use to test Vista and related systems. In Vista the values for this field are: "0" or " " - False "1" - True

These methods "isTestPatient()..." are called from the PatientApi class, but I believe at this time the PatientApi caller method does not call these methods. I created a test case to cover these methods in order to have full coverage, and in case these methods ever do get used.

isTestPatient ( string dfn ) : bool
issueConfidentialityBulletin ( ) : string
issueConfidentialityBulletin ( string dfn ) : string
match ( string target ) : Patient[]
matchByNameCityState ( string name, string city, string stateAbbr ) : Patient[]
matchByNameCityStateIEN ( string name, string city, string stateIEN ) : Patient[]
matchByNameDOBGender ( string name, string dob, string gender ) : string[]
needsMeansTest ( string dfn ) : bool
patientInquiry ( string pid ) : string
select ( ) : Patient
select ( string dfn ) : Patient
selectByExactName ( string name ) : Patient
selectByRpc ( string dfn ) : Patient
selectBySSN ( string ssn ) : Patient

Private Methods

Method Description
addNode0 ( Patient patient ) : void
addNodeMPI ( Patient patient ) : void
addNodeVET ( Patient patient ) : void
addRoomBed ( Patient patient ) : void
buildGetActiveInsuranceRequest ( string dfn ) : MdoQuery
buildGetConfidentialityRequest ( string dfn ) : MdoQuery
buildGetDeceasedDateRequest ( string dfn ) : MdoQuery
buildGetDemographicsQuery ( string dfn ) : DdrLister
buildGetInpatientLocationRequest ( string dfn ) : MdoQuery
buildGetOefOifQuery ( string dfn ) : DdrLister
buildGetPatientFlagNoteTitleRequest ( string dfn, string flagDefinitionId ) : MdoQuery
buildGetPatientFlagTextRequest ( string dfn, string flagId ) : MdoQuery
buildGetPatientFlagsRequest ( string dfn ) : MdoQuery
buildGetPatientsByClinicRequest ( string clinicIen, string fromDate, string toDate ) : MdoQuery
buildGetRatedDisabilitiesQuery ( string dfn ) : DdrLister
buildGetRemoteSitesRequest ( string dfn ) : MdoQuery
buildGetTreatingFacilityIdsRequest ( string dfn ) : MdoQuery
buildIssueConfidentialityBulletinRequest ( string dfn ) : MdoQuery
buildMatchRequest ( string target ) : MdoQuery
buildNeedsMeansTestRequest ( string dfn ) : MdoQuery
buildPatientInquiry ( string dfn ) : MdoQuery
buildSelectByRpcRequest ( string dfn ) : MdoQuery
extractCmor ( string response ) : string
getEthnicityValue ( string ien ) : string
getMaritalStatusValue ( string ien ) : string
getWad ( string dfn ) : string
parseAssociateRecord ( string record ) : PatientAssociate
parseGuardianRecord ( string record ) : PatientAssociate
selectPlus ( string dfn ) : Patient
toConfidentialityResponse ( string response ) : string>.KeyValuePair
toDeceasedDate ( string response ) : string
toDemographicSet ( string response ) : DemographicSet
toInpatientLocation ( string response ) : HospitalLocation
toMatch ( string line ) : Patient
toMatches ( string response ) : Patient[]
toOefOif ( string response ) : OEF_OIF[]
toPatientFlags ( string response ) : StringDictionary
toPatientSelectedByRpc ( string response, string dfn ) : Patient
toPatientsFromClinic ( string response ) : Patient[]
toPatientsFromNameCityState ( string response, string stateIEN ) : Patient[]
toPatientsFromWard ( string response ) : Patient[]
toRatedDisabilities ( string response ) : RatedDisability[]
toRemoteSites ( string response ) : Site[]
toSiteIds ( string response ) : StringDictionary
toTreatingFacilityIds ( string response, string expectedDfn ) : string>.Dictionary

Method Details

VistaPatientDao() public method

public VistaPatientDao ( AbstractConnection cxn ) : System
cxn AbstractConnection
return System

addHomeData() public method

public addHomeData ( Patient patient ) : void
patient Patient
return void

getActiveInsurance() public method

public getActiveInsurance ( ) : string
return string

getActiveInsurance() public method

public getActiveInsurance ( string dfn ) : string
dfn string
return string

getCmor() public method

public getCmor ( ) : string
return string

getCmor() public method

public getCmor ( string dfn ) : string
dfn string
return string

getConfidentiality() public method

public getConfidentiality ( ) : string>.KeyValuePair
return string>.KeyValuePair

getConfidentiality() public method

public getConfidentiality ( string dfn ) : string>.KeyValuePair
dfn string
return string>.KeyValuePair

getCountyName() public method

public getCountyName ( string stateIen, string countyIen ) : string
stateIen string
countyIen string
return string

getDeceasedDate() public method

public getDeceasedDate ( ) : string
return string

getDeceasedDate() public method

public getDeceasedDate ( string dfn ) : string
dfn string
return string

getDemographics() public method

public getDemographics ( ) : DemographicSet
return DemographicSet

getDemographics() public method

public getDemographics ( string dfn ) : DemographicSet
dfn string
return DemographicSet

getInpatientLocation() public method

public getInpatientLocation ( ) : HospitalLocation
return HospitalLocation

getInpatientLocation() public method

public getInpatientLocation ( string dfn ) : HospitalLocation
dfn string
return HospitalLocation

getLastRecordNumber() public method

public getLastRecordNumber ( ) : string
return string

getLocalPid() public method

public getLocalPid ( string icn ) : string
icn string
return string

getMOSReport() public method

public getMOSReport ( Patient patient ) : TextReport
patient Patient
return TextReport

getOefOif() public method

public getOefOif ( ) : OEF_OIF[]
return OEF_OIF[]

getOefOif() public method

public getOefOif ( string dfn ) : OEF_OIF[]
dfn string
return OEF_OIF[]

getPatientAssociates() public method

public getPatientAssociates ( ) : PatientAssociate[]
return PatientAssociate[]

getPatientAssociates() public method

public getPatientAssociates ( string dfn ) : PatientAssociate[]
dfn string
return PatientAssociate[]

getPatientFlagNoteTitle() public method

public getPatientFlagNoteTitle ( string flagDefinitionId ) : string
flagDefinitionId string
return string

getPatientFlagNoteTitle() public method

public getPatientFlagNoteTitle ( string dfn, string flagDefinitionId ) : string
dfn string
flagDefinitionId string
return string

getPatientFlagText() public method

public getPatientFlagText ( string flagId ) : string
flagId string
return string

getPatientFlagText() public method

public getPatientFlagText ( string dfn, string flagId ) : string
dfn string
flagId string
return string

getPatientFlags() public method

public getPatientFlags ( ) : StringDictionary
return System.Collections.Specialized.StringDictionary

getPatientFlags() public method

public getPatientFlags ( string dfn ) : StringDictionary
dfn string
return System.Collections.Specialized.StringDictionary

getPatientType() public method

public getPatientType ( string dfn ) : string
dfn string
return string

getPatientTypeValue() public method

public getPatientTypeValue ( string ien ) : string
ien string
return string

getPatientTypes() public method

public getPatientTypes ( ) : StringDictionary
return System.Collections.Specialized.StringDictionary

getPatientsByClinic() public method

public getPatientsByClinic ( string clinicIen ) : Patient[]
clinicIen string
return Patient[]

getPatientsByClinic() public method

public getPatientsByClinic ( string clinicIen, string fromDate, string toDate ) : Patient[]
clinicIen string
fromDate string
toDate string
return Patient[]

getPatientsByProvider() public method

public getPatientsByProvider ( string duz ) : Patient[]
duz string
return Patient[]

getPatientsBySpecialty() public method

public getPatientsBySpecialty ( string specialtyIen ) : Patient[]
specialtyIen string
return Patient[]

getPatientsByTeam() public method

public getPatientsByTeam ( string teamIen ) : Patient[]
teamIen string
return Patient[]

getPatientsByWard() public method

public getPatientsByWard ( string wardIen ) : Patient[]
wardIen string
return Patient[]

getPcpForPatient() public method

public getPcpForPatient ( string dfn ) : string>.KeyValuePair
dfn string
return string>.KeyValuePair

getPersonalPhones() public method

public getPersonalPhones ( string dfn ) : string[]
dfn string
return string[]

getRatedDisabilities() public method

public getRatedDisabilities ( ) : RatedDisability[]
return RatedDisability[]

getRatedDisabilities() public method

public getRatedDisabilities ( string dfn ) : RatedDisability[]
dfn string
return RatedDisability[]

getRemoteSiteIds() public method

public getRemoteSiteIds ( ) : StringDictionary
return System.Collections.Specialized.StringDictionary

getRemoteSiteIds() public method

public getRemoteSiteIds ( string dfn ) : StringDictionary
dfn string
return System.Collections.Specialized.StringDictionary

getRemoteSites() public method

public getRemoteSites ( ) : Site[]
return Site[]

getRemoteSites() public method

public getRemoteSites ( string dfn ) : Site[]
dfn string
return Site[]

getSiteIDs() public method

public getSiteIDs ( string dfn ) : SiteId[]
dfn string
return SiteId[]

getStateIEN() public method

public getStateIEN ( string stateAbbr ) : string
stateAbbr string
return string

getStateName() public method

public getStateName ( string ien ) : string
ien string
return string

getTeam() public method

Some bad data was found being returned in Boston for patient 105899 - "1^" is returned from the "$G(^DPT(" + 105899 + ",\"TYPE\"))" call above causing the subsequent getPatientTypeValue call to throw an exception. The call below seems to succeed for this patient and others. The only downside is for pre-BSE MDWS where we must switch context before executing this DDR call
public getTeam ( string dfn ) : Team
dfn string
return Team

getTreatingFacilityIds() public method

public getTreatingFacilityIds ( string pid ) : string>.Dictionary
pid string
return string>.Dictionary

hasPatient() public method

public hasPatient ( string dfn ) : bool
dfn string
return bool

isTestPatient() public method

Is the Patient record a test patient (not a real patient), just a patient use to test Vista and related systems. In Vista the values for this field are: "0" or " " - False "1" - True
These methods "isTestPatient()..." are called from the PatientApi class, but I believe at this time the PatientApi caller method does not call these methods. I created a test case to cover these methods in order to have full coverage, and in case these methods ever do get used.
public isTestPatient ( ) : bool
return bool

isTestPatient() public method

public isTestPatient ( string dfn ) : bool
dfn string
return bool

issueConfidentialityBulletin() public method

public issueConfidentialityBulletin ( ) : string
return string

issueConfidentialityBulletin() public method

public issueConfidentialityBulletin ( string dfn ) : string
dfn string
return string

match() public method

public match ( string target ) : Patient[]
target string
return Patient[]

matchByNameCityState() public method

public matchByNameCityState ( string name, string city, string stateAbbr ) : Patient[]
name string
city string
stateAbbr string
return Patient[]

matchByNameCityStateIEN() public method

public matchByNameCityStateIEN ( string name, string city, string stateIEN ) : Patient[]
name string
city string
stateIEN string
return Patient[]

matchByNameDOBGender() public method

public matchByNameDOBGender ( string name, string dob, string gender ) : string[]
name string
dob string
gender string
return string[]

needsMeansTest() public method

public needsMeansTest ( string dfn ) : bool
dfn string
return bool

patientInquiry() public method

public patientInquiry ( string pid ) : string
pid string
return string

select() public method

public select ( ) : Patient
return Patient

select() public method

public select ( string dfn ) : Patient
dfn string
return Patient

selectByExactName() public method

public selectByExactName ( string name ) : Patient
name string
return Patient

selectByRpc() public method

public selectByRpc ( string dfn ) : Patient
dfn string
return Patient

selectBySSN() public method

public selectBySSN ( string ssn ) : Patient
ssn string
return Patient