Exemplo n.º 1
0
        public MARC.Everest.Interfaces.IGraphable HandleMessageReceived(object sender, MARC.Everest.Connectors.UnsolicitedDataEventArgs e, MARC.Everest.Connectors.IReceiveResult receivedMessage)
        {
            IGraphable response = null;

            if (receivedMessage.Structure is PRPA_IN201301UV02) // Activates the patient record
            {
                response = HandlePatientRegistryRecordAdded(e, receivedMessage);
            }
            else if (receivedMessage.Structure is PRPA_IN201302UV02) // Revises the patient record
            {
                response = HandlePatientRegistryRecordRevised(e, receivedMessage);
            }
            else if (receivedMessage.Structure is PRPA_IN201304UV02)
            {
                response = HandlePatientRegistryDuplicatesResolved(e, receivedMessage);
            }
            else if (receivedMessage.Structure is PRPA_IN201309UV02)
            {
                response = PatientRegistryGetIdentifiers(e, receivedMessage);
            }
            else
            {
                var msgr = new NotSupportedMessageReceiver();
                msgr.Context = this.Context;
                response     = msgr.HandleMessageReceived(sender, e, receivedMessage);
            }

            return(response);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Handle a PDQ message
        /// </summary>
        public MARC.Everest.Interfaces.IGraphable HandleMessageReceived(object sender, MARC.Everest.Connectors.UnsolicitedDataEventArgs e, MARC.Everest.Connectors.IReceiveResult receivedMessage)
        {
            IGraphable response = null;

            if (receivedMessage.Structure is PRPA_IN201305UV02) // Activates the patient record
            {
                response = HandleQueryPatientDemographics(e, receivedMessage);
            }

            if (response == null)
            {
                var msgr = new NotSupportedMessageReceiver();
                msgr.Context = this.Context;
                response     = msgr.HandleMessageReceived(sender, e, receivedMessage);
            }

            return(response);
        }