Ejemplo n.º 1
0
        public static GetPharmaceuticalPrescriptionQuery BuildGetPrescriptionParameter(this JObject jObj, string medicalfileid, string rid)
        {
            var result = new GetPharmaceuticalPrescriptionQuery
            {
                MedicalfileId  = medicalfileid,
                PrescriptionId = rid
            };
            string assertionToken;
            var    values = jObj.ToObject <Dictionary <string, object> >();

            if (values.TryGet(MedikitApiConstants.SearchNames.AssertionToken, out assertionToken))
            {
                result.AssertionToken = assertionToken;
            }

            return(result);
        }
Ejemplo n.º 2
0
 public Task <GetPharmaceuticalPrescriptionResult> GetPrescription(GetPharmaceuticalPrescriptionQuery query, CancellationToken token)
 {
     return(_mediator.Send(query, token));
 }