Ejemplo n.º 1
0
        public static PartnerMessage Create(PartnerClientMessage partnerMessage)
        {
            if (null == partnerMessage)
            {
                throw new ArgumentException("message cannot be null message");
            }

            partnerMessage.ValidateDemographics();

            return(new PartnerMessage(
                       partnerMessage.MESSAGE_HEADER,
                       partnerMessage.ClientId,
                       NEWPARTNER.Create(partnerMessage.PARTNERS)));
        }
Ejemplo n.º 2
0
        public static PartnerScreening Create(PartnerClientMessage partnerClientMessage)
        {
            if (null == partnerClientMessage)
            {
                throw new ArgumentException("message cannot be null");
            }

            partnerClientMessage.ValidatePartnerScreening();

            return(new PartnerScreening(
                       partnerClientMessage.MESSAGE_HEADER,
                       partnerClientMessage.ClientId,
                       partnerClientMessage.CurrentClient().PATIENT_IDENTIFICATION.INTERNAL_PATIENT_ID,
                       partnerClientMessage.CurrentClient().ENCOUNTER.PLACER_DETAIL,
                       partnerClientMessage.CurrentClient().ENCOUNTER.PARTNER_SCREENING));
        }