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

Inheritance: IPatientDao
Afficher le fichier Open project: OSEHRA/mdo Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public VistaPatientDao ( AbstractConnection cxn ) : System
cxn AbstractConnection
Résultat System

addHomeData() public méthode

public addHomeData ( Patient patient ) : void
patient Patient
Résultat void

getActiveInsurance() public méthode

public getActiveInsurance ( ) : string
Résultat string

getActiveInsurance() public méthode

public getActiveInsurance ( string dfn ) : string
dfn string
Résultat string

getCmor() public méthode

public getCmor ( ) : string
Résultat string

getCmor() public méthode

public getCmor ( string dfn ) : string
dfn string
Résultat string

getConfidentiality() public méthode

public getConfidentiality ( ) : string>.KeyValuePair
Résultat string>.KeyValuePair

getConfidentiality() public méthode

public getConfidentiality ( string dfn ) : string>.KeyValuePair
dfn string
Résultat string>.KeyValuePair

getCountyName() public méthode

public getCountyName ( string stateIen, string countyIen ) : string
stateIen string
countyIen string
Résultat string

getDeceasedDate() public méthode

public getDeceasedDate ( ) : string
Résultat string

getDeceasedDate() public méthode

public getDeceasedDate ( string dfn ) : string
dfn string
Résultat string

getDemographics() public méthode

public getDemographics ( ) : DemographicSet
Résultat DemographicSet

getDemographics() public méthode

public getDemographics ( string dfn ) : DemographicSet
dfn string
Résultat DemographicSet

getInpatientLocation() public méthode

public getInpatientLocation ( ) : HospitalLocation
Résultat HospitalLocation

getInpatientLocation() public méthode

public getInpatientLocation ( string dfn ) : HospitalLocation
dfn string
Résultat HospitalLocation

getLastRecordNumber() public méthode

public getLastRecordNumber ( ) : string
Résultat string

getLocalPid() public méthode

public getLocalPid ( string icn ) : string
icn string
Résultat string

getMOSReport() public méthode

public getMOSReport ( Patient patient ) : TextReport
patient Patient
Résultat TextReport

getOefOif() public méthode

public getOefOif ( ) : OEF_OIF[]
Résultat OEF_OIF[]

getOefOif() public méthode

public getOefOif ( string dfn ) : OEF_OIF[]
dfn string
Résultat OEF_OIF[]

getPatientAssociates() public méthode

public getPatientAssociates ( ) : PatientAssociate[]
Résultat PatientAssociate[]

getPatientAssociates() public méthode

public getPatientAssociates ( string dfn ) : PatientAssociate[]
dfn string
Résultat PatientAssociate[]

getPatientFlagNoteTitle() public méthode

public getPatientFlagNoteTitle ( string flagDefinitionId ) : string
flagDefinitionId string
Résultat string

getPatientFlagNoteTitle() public méthode

public getPatientFlagNoteTitle ( string dfn, string flagDefinitionId ) : string
dfn string
flagDefinitionId string
Résultat string

getPatientFlagText() public méthode

public getPatientFlagText ( string flagId ) : string
flagId string
Résultat string

getPatientFlagText() public méthode

public getPatientFlagText ( string dfn, string flagId ) : string
dfn string
flagId string
Résultat string

getPatientFlags() public méthode

public getPatientFlags ( ) : StringDictionary
Résultat System.Collections.Specialized.StringDictionary

getPatientFlags() public méthode

public getPatientFlags ( string dfn ) : StringDictionary
dfn string
Résultat System.Collections.Specialized.StringDictionary

getPatientType() public méthode

public getPatientType ( string dfn ) : string
dfn string
Résultat string

getPatientTypeValue() public méthode

public getPatientTypeValue ( string ien ) : string
ien string
Résultat string

getPatientTypes() public méthode

public getPatientTypes ( ) : StringDictionary
Résultat System.Collections.Specialized.StringDictionary

getPatientsByClinic() public méthode

public getPatientsByClinic ( string clinicIen ) : Patient[]
clinicIen string
Résultat Patient[]

getPatientsByClinic() public méthode

public getPatientsByClinic ( string clinicIen, string fromDate, string toDate ) : Patient[]
clinicIen string
fromDate string
toDate string
Résultat Patient[]

getPatientsByProvider() public méthode

public getPatientsByProvider ( string duz ) : Patient[]
duz string
Résultat Patient[]

getPatientsBySpecialty() public méthode

public getPatientsBySpecialty ( string specialtyIen ) : Patient[]
specialtyIen string
Résultat Patient[]

getPatientsByTeam() public méthode

public getPatientsByTeam ( string teamIen ) : Patient[]
teamIen string
Résultat Patient[]

getPatientsByWard() public méthode

public getPatientsByWard ( string wardIen ) : Patient[]
wardIen string
Résultat Patient[]

getPcpForPatient() public méthode

public getPcpForPatient ( string dfn ) : string>.KeyValuePair
dfn string
Résultat string>.KeyValuePair

getPersonalPhones() public méthode

public getPersonalPhones ( string dfn ) : string[]
dfn string
Résultat string[]

getRatedDisabilities() public méthode

public getRatedDisabilities ( ) : RatedDisability[]
Résultat RatedDisability[]

getRatedDisabilities() public méthode

public getRatedDisabilities ( string dfn ) : RatedDisability[]
dfn string
Résultat RatedDisability[]

getRemoteSiteIds() public méthode

public getRemoteSiteIds ( ) : StringDictionary
Résultat System.Collections.Specialized.StringDictionary

getRemoteSiteIds() public méthode

public getRemoteSiteIds ( string dfn ) : StringDictionary
dfn string
Résultat System.Collections.Specialized.StringDictionary

getRemoteSites() public méthode

public getRemoteSites ( ) : Site[]
Résultat Site[]

getRemoteSites() public méthode

public getRemoteSites ( string dfn ) : Site[]
dfn string
Résultat Site[]

getSiteIDs() public méthode

public getSiteIDs ( string dfn ) : SiteId[]
dfn string
Résultat SiteId[]

getStateIEN() public méthode

public getStateIEN ( string stateAbbr ) : string
stateAbbr string
Résultat string

getStateName() public méthode

public getStateName ( string ien ) : string
ien string
Résultat string

getTeam() public méthode

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
Résultat Team

getTreatingFacilityIds() public méthode

public getTreatingFacilityIds ( string pid ) : string>.Dictionary
pid string
Résultat string>.Dictionary

hasPatient() public méthode

public hasPatient ( string dfn ) : bool
dfn string
Résultat bool

isTestPatient() public méthode

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
Résultat bool

isTestPatient() public méthode

public isTestPatient ( string dfn ) : bool
dfn string
Résultat bool

issueConfidentialityBulletin() public méthode

public issueConfidentialityBulletin ( ) : string
Résultat string

issueConfidentialityBulletin() public méthode

public issueConfidentialityBulletin ( string dfn ) : string
dfn string
Résultat string

match() public méthode

public match ( string target ) : Patient[]
target string
Résultat Patient[]

matchByNameCityState() public méthode

public matchByNameCityState ( string name, string city, string stateAbbr ) : Patient[]
name string
city string
stateAbbr string
Résultat Patient[]

matchByNameCityStateIEN() public méthode

public matchByNameCityStateIEN ( string name, string city, string stateIEN ) : Patient[]
name string
city string
stateIEN string
Résultat Patient[]

matchByNameDOBGender() public méthode

public matchByNameDOBGender ( string name, string dob, string gender ) : string[]
name string
dob string
gender string
Résultat string[]

needsMeansTest() public méthode

public needsMeansTest ( string dfn ) : bool
dfn string
Résultat bool

patientInquiry() public méthode

public patientInquiry ( string pid ) : string
pid string
Résultat string

select() public méthode

public select ( ) : Patient
Résultat Patient

select() public méthode

public select ( string dfn ) : Patient
dfn string
Résultat Patient

selectByExactName() public méthode

public selectByExactName ( string name ) : Patient
name string
Résultat Patient

selectByRpc() public méthode

public selectByRpc ( string dfn ) : Patient
dfn string
Résultat Patient

selectBySSN() public méthode

public selectBySSN ( string ssn ) : Patient
ssn string
Résultat Patient