public static AddMedicalfileCommand ToAddMedicalfileCommand(this JObject jObj, string prescriberId)
        {
            var result = new AddMedicalfileCommand
            {
                PrescriberId = prescriberId
            };
            var values = jObj.ToObject <Dictionary <string, object> >();

            if (values.TryGet(MedikitApiConstants.MedicalfileNames.PatientId, out string patientId))
            {
                result.PatientId = patientId;
            }

            return(result);
        }
Example #2
0
 public Task <GetMedicalfileResult> AddMedicalfile(AddMedicalfileCommand command, CancellationToken token)
 {
     return(_mediator.Send(command, token));
 }