Exemplo n.º 1
0
        public static DemographicMessage Create(IndexClientMessage indexClientMessage)
        {
            if (null == indexClientMessage)
            {
                throw new ArgumentException("message cannot be null message");
            }

            indexClientMessage.ValidateDemographics();

            return(new DemographicMessage(
                       indexClientMessage.MESSAGE_HEADER,
                       indexClientMessage.ClientId,
                       NEWAFYAMOBILECLIENT.Create(indexClientMessage.CLIENTS)));
        }
Exemplo n.º 2
0
        public static TracingMessage Create(IndexClientMessage indexClientMessage)
        {
            if (null == indexClientMessage)
            {
                throw new ArgumentException("message cannot be null");
            }

            indexClientMessage.ValidateTracing();

            return(new TracingMessage(
                       indexClientMessage.MESSAGE_HEADER,
                       indexClientMessage.ClientId,
                       indexClientMessage.CurrentClient().PATIENT_IDENTIFICATION.INTERNAL_PATIENT_ID,
                       indexClientMessage.CurrentClient().ENCOUNTER.PLACER_DETAIL,
                       indexClientMessage.CurrentClient().ENCOUNTER.TRACING));
        }