/// <summary> /// Create a custodianship node /// </summary> //public static MARC.Everest.RMIM.CA.R020403.REPC_MT230003CA.Custodian CreateCustodian(ISystemConfigurationService configService) //{ // var retVal = new MARC.Everest.RMIM.CA.R020403.REPC_MT230003CA.Custodian(); // retVal.AssignedDevice = new MARC.Everest.RMIM.CA.R020403.COCT_MT090310CA.AssignedDevice( // new II(configService.Custodianship.Id.Domain, configService.Custodianship.Id.Identifier), // new MARC.Everest.RMIM.CA.R020403.COCT_MT090310CA.Repository(configService.Custodianship.Name), // new MARC.Everest.RMIM.CA.R020403.COCT_MT090310CA.RepositoryJurisdiction( // configService.JurisdictionData.Name) // ); // return retVal; //} /// <summary> /// Create query data structure /// </summary> public static RegistryQueryRequest CreateQueryData <T>(QueryByParameter <T> queryByParameter, string originator) { return(new RegistryQueryRequest() { QueryId = String.Format("{1}^^^&{0}&ISO", queryByParameter.QueryId.Root, queryByParameter.QueryId.Extension), IsSummary = true, Limit = (int)(queryByParameter.InitialQuantity ?? new INT(100)), Originator = originator }); }
protected override IInteraction CreateRequestInteraction() { this.responseExampleResourceFileName = "Resources.PORX_EX060300CA.xml"; MedicationPrescriptionSummaryQuery message = new MedicationPrescriptionSummaryQuery(); this.SetTransportWrapperValues(message); message.ControlActEvent = this.CreateControlActEvent(); // Set the Record Target (i.e the patient) message.ControlActEvent.RecordTargetPatient1 = this.CreateRecordTarget(); QueryByParameter <ParameterList> queryCriteria = new QueryByParameter <ParameterList>(); message.ControlActEvent.QueryByParameter = queryCriteria; queryCriteria.QueryId = new Identifier(System.Guid.NewGuid().ToString()); queryCriteria.ParameterList = this.CreateQueryParameters(); return(message); }
protected override IInteraction CreateRequestInteraction() { this.responseExampleResourceFileName = "Resources.POIZ_EX020020CA.xml"; // Create a POIZ_IN020010CA Immunization Event Detail Request Message ImmunizationsQuery message = new ImmunizationsQuery(); this.SetTransportWrapperValues(message); // Create and setup the control act event wrapper message.ControlActEvent = this.CreateControlActEvent(); QueryByParameter <ImmunizationQueryParameters> query = new QueryByParameter <ImmunizationQueryParameters>(); message.ControlActEvent.QueryByParameter = query; // Set unique query identifier message.ControlActEvent.QueryByParameter.QueryId = new Identifier(Guid.NewGuid().ToString()); // Lastly, set the Query Parameters message.ControlActEvent.QueryByParameter.ParameterList = this.createQueryParameters(); return(message); }
protected override IInteraction CreateRequestInteraction() { // Interaction ID: POLB_IN354000CA // Interaction Business Name: Request Query Results // Message Type: POLB_MT310000CA // Message Type Name: Laboratory Result Detail Query Request // Control Act Wrapper: QUQI_MT020000CA - Query Request Wrapper - human initiated patient-specfic // Transport Wrapper: MCCI_MT002100CA - Send Message Payload // // Trigger Event ID: POLB_TE304000CA // Note: the vague name is derived from the Business Name defined // by the pan-Canadian Standards Collaborative. this.responseExampleResourceFileName = "Resources.POLB_EX364000CA.xml"; RequestQueryResults message = new RequestQueryResults(); this.SetTransportWrapperValues(message); message.ControlActEvent = this.CreateControlActEvent(); // Set the Record Target (i.e the patient) message.ControlActEvent.RecordTargetPatient1 = this.CreateRecordTarget(); QueryByParameter <ParameterList> query = new QueryByParameter <ParameterList>(); message.ControlActEvent.QueryByParameter = query; // Set the Query Identifier Identifier queryIdentifier = new Identifier(Guid.NewGuid().ToString()); message.ControlActEvent.QueryByParameter.QueryId = queryIdentifier; // Lastly, set the Query Parameters message.ControlActEvent.QueryByParameter.ParameterList = this.CreateQueryParameters(); return(message); }