Пример #1
0
        public DtoShr GenerateShrForEmrUsingCardSerial(string cardSerial)
        {
            //string Version = "VERSION\": \"1.0.0\"";
            var patientIdentification = GetPatientidentification(cardSerial);
            var carddetails           = GetPatientCarddetails(cardSerial);
            List <IMMUNIZATION> immunizationSource = GetPatientImmunization(cardSerial);
            List <NEXTOFKIN>    nextOfKinSouce     = GetPatientNextofkin(cardSerial);
            List <HIVTEST>      hivTestSource      = GetPatientHivtest(cardSerial);

            var clientGeneratedShr = new SHR()
            {
                //VERSION = Version
                PATIENT_IDENTIFICATION = patientIdentification,
                NEXT_OF_KIN            = nextOfKinSouce,
                HIV_TEST     = hivTestSource,
                IMMUNIZATION = immunizationSource,
                CARD_DETAILS = carddetails
            };

            DtoMapper dtoMapper             = new DtoMapper();
            DtoShr    clientGeneratedDtoShr = new DtoShr();


            clientGeneratedDtoShr = dtoMapper.GenerateDtoShr(clientGeneratedShr);


            return(clientGeneratedDtoShr);
        }