GetObjectData |
Top Previous Next |
×V5.0Ø
Syntax - GetObjectData <ResultObjectName> <ObjectName>.<Method> (Parameter1,Parameter2,...,ParameterX) Where: <ResultObjectName> is an unquoted user defined string <ObjectName> is a valid object that has been created with the CreateObject command <Method> is a valid method to be called using <ObjectName>. <ParameterX> is a literal string, variable or object
Description: This command is used to execute a method against a specified API endpoint. Executing this command means that you want to call a method that returns data from the endpoint. For example, if you want to simply check eligibility, you pass the required parameters for that individual and you get a response back. The data that is returned can be viewed in the Object Data tab. The methods available to execute will depend on the object that has been created via the CreateObject. The XML file defines the object, its methods and required parameters. The number of parameters to provide in this command will vary based on the method being called.
Sample 1: The following command uses the Claim method from the Eligible object to retrieve claim information for a patient. The data returned from the method is stored in a new object called Results. GetObjectData Results Eligible.Claim("00001","0123456789","","","ZZZ445554301","Franklin","Ida","1701-12-12","")
Sample 2: The following command uses the Verify method from the Address object to verify an address. Using the Add method from the RecordObject collection, we build a list of addresses. The collection is used as a parameter for the GetObjectData command. The data returned from the method is stored in a new object called Results.. CreateObject Address "C:\Temp\MelissaData.xml" MelissaData CreateObject RecordObject "C:\Temp\MelissaData.xml" Record
RecordObject.Add("John","Doe","22382 Avenida Empresa","","Rancho Santa Margarita","92688","CA","1")
GetObjectData Results Address.Verify("Check",RecordObject)
Sample 3: The following command uses the NPILookup method from the NPIObject object to verify a physician's NPI number. Using direct property assignment, we populate the PhysicianObject with information about the physician. The object is used as a parameter for the GetObjectData command. The data returned from the method is stored in a new object called Results.. CreateObject NPIObject "C:\Temp\NPI.xml" NPI CreateObject PhysicianObject "C:\Temp\NPI.xml" Physician
PhysicianObject.FirstName = "John" PhysicianObject.LastName = "Smith" PhysicianObject.NPI = "1234567890"
GetObjectData Results NPIObject.NPILookup(PhysicianObject, "NPI-1","10")
See Also: |