All RPC

Package: VBECS RPC List

Name Tag Routine Availability Description
Name Tag Routine Availability Description
VBECS PATIENT LOOKUP SEARCH VBECLU RESTRICTED This RPC returns XML containing a list of patient demographic data for PatientLastName = PATIENT file (#2) / first comma delimited piece of the NAME field (#.01) PatientFirstName = PATIENT file (#2) / second comma delimited piece and first "space" delimited piece of the NAME field (#.01) PatientMiddleName = PATIENT file (#2) / second comma delimited piece and second "space" delimited piece of the NAME field (#.01) Sensitive = DG SECURITY LOG file (#38.1) / SECURITY LEVEL field (#2) the purpose of inserting a new patient in the VBECS database for PatientDOB = PATIENT file (#2) / DATE OF BIRTH field (#.03) in HL7 format PatientDOBCode = Code derived from a missing day or month value in PatientDOB. B = Both Day and Month is unknown. M = Month is unknown. D = Day is unknown V = valid Day/Month/Year PatientSSN = PATIENT file (#2) / SOCIAL SECURITY NUMBER field (#.09) when receiving an autologous or directed unit on a patient that is not PatientDeathDate = PATIENT file (#2) / DATE OF DEATH field (#.351) Type = TYPE OF PATIENT file (#391) / NAME field (#.01) PrimaryEligibility = MAS ELIGIBILITY CODE file (#8.1) / PRINT NAME field (#5) ServiceConnected = PATIENT file (#2) / SERVICE CONNECTED? field (#.301) ScPercent = PATIENT file (#2) / SERVICE CONNECTED PERCENTAGE field (#.302) PatientSexCode = PATIENT file (#2) / SEX field (#.02) PatientICN = PATIENT file (#2) / INTEGRATION CONTROL NUMBER already defined in the VBECS Patient table. field (#991.01) Veteran = PATIENT file (#2) / VETERAN (Y/N)? field (#1901) PatientLocation = PATIENT file (#2) / WARD LOCATION field (#.1) PatientRoomBed = PATIENT file (#2) / ROOM-BED field (#.101) XML Example: 1 1000 VBECSpatient One T false 19291120 V 666000000 SC VETERAN SC, 50% TO 100% XML Mapping: true 50 M 1000000000V000000 true count attribute = Number of records found Number element = Sequence number of records found VistaPatientId = PATIENT file (#2) / NUMBER field (#.001)
VBECS HOSPITAL LOCATION LOOKUP LOC VBECRPCD RESTRICTED This RPC returns XML containing a list of Hospital Locations from the XML Example: 6W REHAB-KC 503 W 7E PCUS-KC 504 HOSPITAL LOCATION file (#44) of either Ward or Clinic Type for use in W KC-GI RESEARCH 511 C VBECS when issuing units to a location other than the Blood Bank. XML Mapping: LocationName element = HOSPITAL LOCATION file (#44) / NAME field (#.01) LocationIEN element = HOSPITAL LOCATION file (#44) / NUMBER field (#.001) LocationType element = HOSPITAL LOCATION file (#44) / TYPE field (#2)
VBECS PROVIDER LOOKUP PROVIDER VBECRPCE RESTRICTED This RPC returns XML containing a list of physicians in the NEW PERSON ProviderName element = NEW PERSON file (#200) / NAME field (#.01) XML Example: 7650 VBECSprovider,One file (#200) that hold the PROVIDER Security Key and do not have a 53304 VBECSprovider,Two 14909 VBECSprovider,Three 8190 VBECSprovider,Four TERMINATION DATE value prior to the current date, and has a matching 10574 VBECSprovider,Five division from the DIV input parameter whose last name starts with the DATA input parameter. XML Mapping: count attribute = Number of records found ProviderIEN element = NEW PERSON file (#200) / NUMBER field (#.001)
VBECS LABORATORY TEST LOOKUP LABTEST VBECRPCA RESTRICTED This RPC returns XML containing a list of Laboratory tests from the XML Example: HEMATOCRIT - BODY FLUID-KC 1125 BODY FLUID,NOS HCT i-STAT LABORATORY TEST file (#60). 5742 BLOOD HCT(BLOOD GAS) 2244 ARTERIAL BLOOD XML Mapping: Name element = LABORATORY TEST file (#60) / NAME field (#.01) IEN element = LABORATORY TEST file (#60) / NUMBER field (#.001) Specimen element = LABORATORY TEST file (#60) / SITE/SPECIMEN sub-file (#60.01) / SITE/SPECIMEN field (#.01) pointer to TOPOGRAPHY FIELD FILE (#61)
VBECS DIVISION LOOKUP DIV VBECRPCM RESTRICTED This RPC returns XML containing a list of active VAMC divisions associated 589 VA HEARTLAND - WEST, VISN 15 589A4 COLUMBIA, MO VAMC 589A5 with a Medical Center. TOPEKA, KS VAMC 589A6 LEAVENWORTH VAMC 589A7 WICHITA VAMC XML Mapping: DivisionId element = INSTITUTION file (#4) / STATION NUMBER field (#99) DivisionName element = INSTITUTION file (#4) / NAME field (#.01) XML Example:
VBECS BLOOD BANK USER LOOKUP BBUSER VBECRPCM RESTRICTED This RPC returns XML containing a list of users from the New Person file (#99) XML Example: #200 that hold the Security Keys associated with Blood Bank. XML Mapping: count attribute = Number of records found userName attribute = NEW PERSON file (#200) / NAME field (#.01) userDuz attribute = NEW PERSON file (#200) / IEN field (#.001) userInitials attribute = NEW PERSON file (#200) / INITIAL field (#1) divisionCode attribute = INSTITUTION file (#4) / STATION NUMBER field
VBECS WORKLOAD CODES LOOKUP WKLD VBECRPCW RESTRICTED This RPC returns XML containing a list of Workload Codes from the WKLD CPTCode element = WKLD CODE file (#64) / CODE sub-file (#64.018) / CODE field (#.01) XML Example: 86272.0000 Cryoprecipitate Thawing 2.50 CODE file (#64) with a WORKLOAD CODE LAB SECTION of "Blood Bank" to VBECS. 3 88399 86403.0000 Decontamination of Lymphocyte 2 88399 XML Mapping: LMIP element = WKLD CODE file (#64) / WKLD CODE field (#1) Procedure element = WKLD CODE file (#64) / PROCEDURE field (#.01) Cost element = WKLD CODE file (#64) / COST field (#7) WeightMultiplier element = WKLD CODE file (#64) / WKLD UNIT WEIGHT field (#2)
VBECS HCPCS CODES LOOKUP HCPCS VBECRPCH RESTRICTED This RPC returns XML containing a list of active HCPCS codes from the CPT P2028 Cephalin floculation test P2029 Congo red blood test file with a CPT Category of Pathology and Laboratory Services for use in P2031 Hair analysis VBECS. XML Mapping: Code element = CPT file (#81) / CODE field (#.01) Name element = CPT file (#81) / SHORT NAME field (#2) XML Example:
VBECS MED PROFILE LOOKUP RX VBECRPCP RESTRICTED This RPC returns XML containing a list of medications for a patient from ^TMP("PS",$J,D0,0)=ORDER #_File;PKG^DRUG^INFUSION RATE^STOP DATE^REFILLS REMAINING^TOTAL DOSE^UNITS PER DOSE^PLACER #^STATUS^LAST FILLDATE^DAYS SUPPLY^QUANTITY^NOT TO BE GIVEN^PENDING RENEWAL (1 or 0)^ISSUE DATE(Outpatient) or START DATE(Inpatient)^LAST RELEASE DATE/TIME^LAST FILL DAY SUPPLY XML Mapping: PatientName element = VADM(1) PatientSsn element = VADM(2) PatientDob element = VADM(3) in HL7 format the Pharmacy package within a given date range. BeginningSearchDate element = SDATE input parameter in HL7 format EndingSearchDate element = EDATE input parameter in HL7 format OrderNumber element = ORDER # DrugName element = DRUG IssueStartDate element = ISSUE DATE(Outpatient) or START DATE(Inpatient) Status element = STATUS InpatientOutpatientIndicator = PKG XML Example: VBECSpatient,One 666-66-6666 Jan 01, 1900 Oct 01, 2002 Jul 31, 2003 4863015 ACETAMINOPHEN 500MG TAB Apr 08, 2002 The patient demographic data is provided by the VistA API DEM^VADPT in EXPIRED O the VADM array. The medication related data is provided by the Pharmacy API OCL^PSOORRL in the ^TMP("PS",$J global array in the following format.
VBECS LAB ACCESSION UID LOOKUP ORDNUM VBECRPCB RESTRICTED This RPC returns XML containing a list of Laboratory tests and (#69.01) / ORDER# field (#9.5) LabTestId element = LAB ORDER ENTRY file (#69) / SPECIMEN sub-file (#69.01) / TEST/PROCEDURE field (#.01) LabTestName element = LABORATORY TEST file (#60) / NAME field (#.01) SpecimenAccessionNumber = ACCESSION file (#68) / ACCESSION NUMBER sub-file (#68.02) / ACCESSION field (#15) SpecimenUid = LAB ORDER ENTRY file (#69) / SPECIMEN sub-file (#69.01) / TEST sub-file (#69.03) / UID field (#16) CollectionDateTime = ACCESSION file (#68) / ACCESSION NUMBER associated data based on a Lab Order number. The data is used in VBECS to sub-file (#68.02) / DRAW TIME field (#9) XML Example: VBECSpatient,One 308 11465 6479 validate an order and associated a specimen UID with the Blood Bank VBECS RED BLOOD CELLS 2942360003 2942360003 20040823103630-0600 request. XML Mapping: PatientName element = PATIENT file (#2) / NAME field (#.01) VistaPatientId element = PATIENT file (#2) / NUMBER field (#.001) LabOrderNumber element = LAB ORDER ENTRY file (#69) / SPECIMEN sub-file
VBECS LAB TEST RESULTS LOOKUP TSTRSLT VBECRPCA RESTRICTED This RPC returns XML containing a list of Laboratory test results for a XML Mapping: VistaPatientId element = DFN LabTestId element = Test TestPrintName element = Print Name TestResult element = result TestDate element = inverse d/t (Converted to HL7 format) XML Example: patient within a given date range. 378793 3 HGB 14.1 20010910122446-0600 378793 3 HGB 14.4 20010430115535-0600 The data returned is provided by the Lab API RR^LR7OR1 in the ^TMP("LRRR" global array in the following format. ^TMP("LRRR",$J,DFN,SUB,inverse d/t,sequence #) = Test^result^L/N flag^ units^reference range^result status^^^Nat'l Code^Name^System^Verified b y^^Therapeutic flag^Print Name^Accession^Order#
VBECS ACCESSION AREA LOOKUP ACNAREA VBECRPCM RESTRICTED This RPC returns XML containing a list of Lab Blood Bank Accession Areas XML Example: BLOOD BANK 29 COBLOOD BANK 60 from the ACCESSION file (#68) where the LR SUBSCRIPT field .02 is set to LEBLOOD BANK 87 TOBLOOD BANK 91 BLOOD BANK for use in the gov.va.med.vbecs rehosted Blood Bank WIBLOOD BANK 146 application. XML Mapping: AccessionAreaName element = ACCESSION file (#68) / ACCESSION AREA field (#.01) AccessionAreaId element = ACCESSION file (#68) / IEN field (#.001)
VBECS LAB ORDER LOOKUP BY UID ORDER VBECRPCB RESTRICTED (#69.01) / ORDER# field (#9.5) LabTestId element = LAB ORDER ENTRY file (#69) / SPECIMEN sub-file (#69.01) / TEST/PROCEDURE field (#.01) LabTestName element = LABORATORY TEST file (#60) / NAME field (#.01) SpecimenAccessionNumber = ACCESSION file (#68) / ACCESSION NUMBER sub-file (#68.02) / ACCESSION field (#15) SpecimenUid = LAB ORDER ENTRY file (#69) / SPECIMEN sub-file (#69.01) / TEST sub-file (#69.03) / UID field (#16) CollectionDateTime = ACCESSION file (#68) / ACCESSION NUMBER This RPC returns XML containing a list of laboratory tests and associated sub-file (#68.02) / DRAW TIME field (#9) XML Example: VBECSpatient,One 1000 BB0401-01 25000 29500000000 304010800 data based on a Specimen UID. The data is used in VBECS to identify an 2400 VBECS ANTIBODY SCREEN existing VBECS order based on the Lab Order number provided by CPRS. XML Mapping: PatientName element = PATIENT file (#2) / NAME field (#.01) VistaPatientId element = PATIENT file (#2) / NUMBER field (#.001) LabOrderNumber element = LAB ORDER ENTRY file (#69) / SPECIMEN sub-file
VBECS DSS EXTRACT EN VBECDSS RESTRICTED This RPC inserts or updates post transfusion related data in the VBECS DSS EXTRACT file (#6002.03). The data is passed into the VBECDSS routine through the input parameters and a success indicator is returned to the Blood Bank medical device.