VistA Analysis » VistA Reference » RPCs » VBECS LAB TEST RESULTS LOOKUP

VBECS LAB TEST RESULTS LOOKUP

This RPC returns XML containing a list of Laboratory test results for a patient within a given date range. 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# XML Mapping:VistaPatientId element = DFNLabTestId element = TestTestPrintName element = Print NameTestResult element = resultTestDate element = inverse d/t (Converted to HL7 format) XML Example: 378793 3 HGB 14.1 20010910122446-0600 378793 3 HGB 14.4 20010430115535-0600

Properties

Property Value
Label TSTRSLT
MUMPS Implementation VBECRPCA
Return Type GLOBAL ARRAY

Input Parameters

Name Type Maximum Data Length Required Description
SDATE LITERAL   true The SDATE input parameter represents the start date used to search for Laboratory test results in the Lab API RR^LR7OR1.
EDATE LITERAL 30 true The EDATE input parameter represents the end date to search for Laboratory test results in the Lab API RR^LR7OR1.
DIV LITERAL 12 true The DIV input parameter representd the Division (Station Number) where the results were obtained.NOTE: This parameter is for future use.
TESTS LITERAL 999 true An array of Laboratory Test IENs used to search for results. TESTS(1)="3536" TESTS(2)="4090"
PATS LITERAL 999 true An array of Patient IENs used to search for Lab test results. PATS(1)="495943" PATS(2)="39282"


Document generated on August 31st 2022, 2:55:43 pm