Question about proper method for querying data from custom SDA3 container on Access Gateway for a patient loaded in the clinical viewer
I have created a custom container that contains medication adherence data. I want to know the best-practice way of querying the data for to display in a custom Zen page in the Clinical Viewer for a given loaded patient.
Let's say the custom class is called Hospital.Data.MedicationAdherenceData. Let's say the streamlet class is Hospital.SDA3.Streamlet.MedicationAdherenceData
I can look up the data by using the Sequence number as viewed in the HS.Viewer.Services component trace after loading up a patient in the Clinical Viewer. I do this by selecting from the custom streamlet class using "T+[sequence number]" as the aggregation key on the Access Gateway. Thus, should I just programatically generate the aggregation key on the Access Gateway (if so, how?) and query the table for the container's streamlet class for the aggregation key?
I read somewhere about importing the XML schema of the streamlet class to the Access gateway, but is this for accessing custom SDA3 container data or only SDA3 extensions?
Thanks.