示例#1
0
		public virtual bool Validate(MARC.Everest.Interfaces.IGraphable o, string location, out MARC.Everest.Connectors.IResultDetail[] outDetails) {
			MARC.Everest.RMIM.UV.NE2008.MCCI_MT100200UV01.AttentionLine instance = o as MARC.Everest.RMIM.UV.NE2008.MCCI_MT100200UV01.AttentionLine;;
			outDetails = new MARC.Everest.Connectors.IResultDetail[0]; System.Collections.Generic.List<MARC.Everest.Connectors.IResultDetail> details = new System.Collections.Generic.List<MARC.Everest.Connectors.IResultDetail>(10);;
			bool isValid = true;;
			if(instance == null && o != null) throw new System.NullReferenceException(System.String.Format("Could not cast type '{0}' to 'MARC.Everest.RMIM.UV.NE2008.MCCI_MT100200UV01.AttentionLine'!", o.GetType().FullName));if(instance == null || instance.NullFlavor != null) return true;;
			outDetails = details.ToArray();;
			return isValid;;
		}
示例#2
0
		public virtual bool Validate(MARC.Everest.Interfaces.IGraphable o, string location, out MARC.Everest.Connectors.IResultDetail[] outDetails) {
			MARC.Everest.RMIM.UV.NE2008.MCCI_MT100200UV01.Agent instance = o as MARC.Everest.RMIM.UV.NE2008.MCCI_MT100200UV01.Agent;;
			outDetails = new MARC.Everest.Connectors.IResultDetail[0]; System.Collections.Generic.List<MARC.Everest.Connectors.IResultDetail> details = new System.Collections.Generic.List<MARC.Everest.Connectors.IResultDetail>(10);;
			bool isValid = true;;
			if(instance == null && o != null) throw new System.NullReferenceException(System.String.Format("Could not cast type '{0}' to 'MARC.Everest.RMIM.UV.NE2008.MCCI_MT100200UV01.Agent'!", o.GetType().FullName));if(instance == null || instance.NullFlavor != null) return true;if(instance.ClassCode == null || instance.ClassCode.NullFlavor != null) { isValid &= false; details.Add(new MARC.Everest.Connectors.MandatoryElementMissingResultDetail(MARC.Everest.Connectors.ResultDetailType.Error, "Property ClassCode in MARC.Everest.RMIM.UV.NE2008.MCCI_MT100200UV01.Agent is marked mandatory and is either not assigned, or is assigned a null flavor. This is not permitted.", location));  } 
;
			outDetails = details.ToArray();;
			return isValid;;
		}
示例#3
0
		public virtual bool Validate(MARC.Everest.Interfaces.IGraphable o, string location, out MARC.Everest.Connectors.IResultDetail[] outDetails) {
			MARC.Everest.RMIM.UV.NE2008.COCT_MT510000UV06.CoveredParty instance = o as MARC.Everest.RMIM.UV.NE2008.COCT_MT510000UV06.CoveredParty;;
			outDetails = new MARC.Everest.Connectors.IResultDetail[0]; System.Collections.Generic.List<MARC.Everest.Connectors.IResultDetail> details = new System.Collections.Generic.List<MARC.Everest.Connectors.IResultDetail>(10);;
			bool isValid = true;;
			if(instance == null && o != null) throw new System.NullReferenceException(System.String.Format("Could not cast type '{0}' to 'MARC.Everest.RMIM.UV.NE2008.COCT_MT510000UV06.CoveredParty'!", o.GetType().FullName));if(instance == null || instance.NullFlavor != null) return true;if(instance.ClassCode == null || instance.ClassCode.NullFlavor != null) { isValid &= false; details.Add(new MARC.Everest.Connectors.MandatoryElementMissingResultDetail(MARC.Everest.Connectors.ResultDetailType.Error, "Property ClassCode in MARC.Everest.RMIM.UV.NE2008.COCT_MT510000UV06.CoveredParty is marked mandatory and is either not assigned, or is assigned a null flavor. This is not permitted.", location));  } 
if(instance.Id == null) { isValid &= Host.CreateRequiredElements; details.Add(new MARC.Everest.Connectors.RequiredElementMissingResultDetail(isValid ? MARC.Everest.Connectors.ResultDetailType.Warning : MARC.Everest.Connectors.ResultDetailType.Error, "Property Id in MARC.Everest.RMIM.UV.NE2008.COCT_MT510000UV06.CoveredParty is marked 'populated' and isn't assigned (you must at minimum, assign a nullFlavor for this attribute)!", location));  } 
;
			outDetails = details.ToArray();;
			return isValid;;
		}
示例#4
0
		public virtual bool Validate(MARC.Everest.Interfaces.IGraphable o, string location, out MARC.Everest.Connectors.IResultDetail[] outDetails) {
			MARC.Everest.RMIM.UV.NE2008.PRPA_MT201306UV02.LivingSubjectBirthPlaceName instance = o as MARC.Everest.RMIM.UV.NE2008.PRPA_MT201306UV02.LivingSubjectBirthPlaceName;;
			outDetails = new MARC.Everest.Connectors.IResultDetail[0]; System.Collections.Generic.List<MARC.Everest.Connectors.IResultDetail> details = new System.Collections.Generic.List<MARC.Everest.Connectors.IResultDetail>(10);;
			bool isValid = true;;
			if(instance == null && o != null) throw new System.NullReferenceException(System.String.Format("Could not cast type '{0}' to 'MARC.Everest.RMIM.UV.NE2008.PRPA_MT201306UV02.LivingSubjectBirthPlaceName'!", o.GetType().FullName));if(instance == null || instance.NullFlavor != null) return true;if(instance.Value == null) { isValid &= Host.CreateRequiredElements; details.Add(new MARC.Everest.Connectors.RequiredElementMissingResultDetail(isValid ? MARC.Everest.Connectors.ResultDetailType.Warning : MARC.Everest.Connectors.ResultDetailType.Error, "Property Value in MARC.Everest.RMIM.UV.NE2008.PRPA_MT201306UV02.LivingSubjectBirthPlaceName is marked 'populated' and isn't assigned (you must at minimum, assign a nullFlavor for this attribute)!", location));  } 
if(instance.SemanticsText == null) { isValid &= Host.CreateRequiredElements; details.Add(new MARC.Everest.Connectors.RequiredElementMissingResultDetail(isValid ? MARC.Everest.Connectors.ResultDetailType.Warning : MARC.Everest.Connectors.ResultDetailType.Error, "Property SemanticsText in MARC.Everest.RMIM.UV.NE2008.PRPA_MT201306UV02.LivingSubjectBirthPlaceName is marked 'populated' and isn't assigned (you must at minimum, assign a nullFlavor for this attribute)!", location));  } 
;
			outDetails = details.ToArray();;
			return isValid;;
		}
示例#5
0
		public virtual bool Validate(MARC.Everest.Interfaces.IGraphable o, string location, out MARC.Everest.Connectors.IResultDetail[] outDetails) {
			MARC.Everest.RMIM.UV.NE2008.COCT_MT150003UV03.Organization instance = o as MARC.Everest.RMIM.UV.NE2008.COCT_MT150003UV03.Organization;;
			outDetails = new MARC.Everest.Connectors.IResultDetail[0]; System.Collections.Generic.List<MARC.Everest.Connectors.IResultDetail> details = new System.Collections.Generic.List<MARC.Everest.Connectors.IResultDetail>(10);;
			bool isValid = true;;
			if(instance == null && o != null) throw new System.NullReferenceException(System.String.Format("Could not cast type '{0}' to 'MARC.Everest.RMIM.UV.NE2008.COCT_MT150003UV03.Organization'!", o.GetType().FullName));if(instance == null || instance.NullFlavor != null) return true;if(instance.ClassCode == null || instance.ClassCode.NullFlavor != null) { isValid &= false; details.Add(new MARC.Everest.Connectors.MandatoryElementMissingResultDetail(MARC.Everest.Connectors.ResultDetailType.Error, "Property ClassCode in MARC.Everest.RMIM.UV.NE2008.COCT_MT150003UV03.Organization is marked mandatory and is either not assigned, or is assigned a null flavor. This is not permitted.", location));  } 
if(instance.DeterminerCode == null || instance.DeterminerCode.NullFlavor != null) { isValid &= false; details.Add(new MARC.Everest.Connectors.MandatoryElementMissingResultDetail(MARC.Everest.Connectors.ResultDetailType.Error, "Property DeterminerCode in MARC.Everest.RMIM.UV.NE2008.COCT_MT150003UV03.Organization is marked mandatory and is either not assigned, or is assigned a null flavor. This is not permitted.", location));  } 
if(instance.Id == null || instance.Id.NullFlavor != null) { isValid &= false; details.Add(new MARC.Everest.Connectors.MandatoryElementMissingResultDetail(MARC.Everest.Connectors.ResultDetailType.Error, "Property Id in MARC.Everest.RMIM.UV.NE2008.COCT_MT150003UV03.Organization is marked mandatory and is either not assigned, or is assigned a null flavor. This is not permitted.", location));  } 
if(instance.ContactParty != null && (instance.ContactParty.Count > 2147483647 ||  instance.ContactParty.Count < 1)) { isValid &= false; details.Add(new MARC.Everest.Connectors.InsufficientRepetionsResultDetail(MARC.Everest.Connectors.ResultDetailType.Error, "Property ContactParty in MARC.Everest.RMIM.UV.NE2008.COCT_MT150003UV03.Organization does not have enough elements in the list, need between 1 and 2147483647 elements!", location));  } 
;
			outDetails = details.ToArray();;
			return isValid;;
		}
示例#6
0
		public virtual bool Validate(MARC.Everest.Interfaces.IGraphable o, string location, out MARC.Everest.Connectors.IResultDetail[] outDetails) {
			MARC.Everest.RMIM.UV.NE2008.Interactions.PRPA_IN201305UV02 instance = o as MARC.Everest.RMIM.UV.NE2008.Interactions.PRPA_IN201305UV02;;
			outDetails = new MARC.Everest.Connectors.IResultDetail[0]; System.Collections.Generic.List<MARC.Everest.Connectors.IResultDetail> details = new System.Collections.Generic.List<MARC.Everest.Connectors.IResultDetail>(10);;
			bool isValid = true;;
			if(instance == null && o != null) throw new System.NullReferenceException(System.String.Format("Could not cast type '{0}' to 'MARC.Everest.RMIM.UV.NE2008.Interactions.PRPA_IN201305UV02'!", o.GetType().FullName));if(instance == null || instance.NullFlavor != null) return true;if(instance.Id == null || instance.Id.NullFlavor != null) { isValid &= false; details.Add(new MARC.Everest.Connectors.MandatoryElementMissingResultDetail(MARC.Everest.Connectors.ResultDetailType.Error, "Property Id in MARC.Everest.RMIM.UV.NE2008.Interactions.PRPA_IN201305UV02 is marked mandatory and is either not assigned, or is assigned a null flavor. This is not permitted.", location));  } 
if(instance.CreationTime == null || instance.CreationTime.NullFlavor != null) { isValid &= false; details.Add(new MARC.Everest.Connectors.MandatoryElementMissingResultDetail(MARC.Everest.Connectors.ResultDetailType.Error, "Property CreationTime in MARC.Everest.RMIM.UV.NE2008.Interactions.PRPA_IN201305UV02 is marked mandatory and is either not assigned, or is assigned a null flavor. This is not permitted.", location));  } 
if(instance.InteractionId == null || instance.InteractionId.NullFlavor != null) { isValid &= false; details.Add(new MARC.Everest.Connectors.MandatoryElementMissingResultDetail(MARC.Everest.Connectors.ResultDetailType.Error, "Property InteractionId in MARC.Everest.RMIM.UV.NE2008.Interactions.PRPA_IN201305UV02 is marked mandatory and is either not assigned, or is assigned a null flavor. This is not permitted.", location));  } 
if(instance.ProcessingCode == null || instance.ProcessingCode.NullFlavor != null) { isValid &= false; details.Add(new MARC.Everest.Connectors.MandatoryElementMissingResultDetail(MARC.Everest.Connectors.ResultDetailType.Error, "Property ProcessingCode in MARC.Everest.RMIM.UV.NE2008.Interactions.PRPA_IN201305UV02 is marked mandatory and is either not assigned, or is assigned a null flavor. This is not permitted.", location));  } 
if(instance.ProcessingModeCode == null || instance.ProcessingModeCode.NullFlavor != null) { isValid &= false; details.Add(new MARC.Everest.Connectors.MandatoryElementMissingResultDetail(MARC.Everest.Connectors.ResultDetailType.Error, "Property ProcessingModeCode in MARC.Everest.RMIM.UV.NE2008.Interactions.PRPA_IN201305UV02 is marked mandatory and is either not assigned, or is assigned a null flavor. This is not permitted.", location));  } 
if(instance.AcceptAckCode == null || instance.AcceptAckCode.NullFlavor != null) { isValid &= false; details.Add(new MARC.Everest.Connectors.MandatoryElementMissingResultDetail(MARC.Everest.Connectors.ResultDetailType.Error, "Property AcceptAckCode in MARC.Everest.RMIM.UV.NE2008.Interactions.PRPA_IN201305UV02 is marked mandatory and is either not assigned, or is assigned a null flavor. This is not permitted.", location));  } 
if(instance.Receiver != null && (instance.Receiver.Count > 2147483647 ||  instance.Receiver.Count < 1)) { isValid &= false; details.Add(new MARC.Everest.Connectors.InsufficientRepetionsResultDetail(MARC.Everest.Connectors.ResultDetailType.Error, "Property Receiver in MARC.Everest.RMIM.UV.NE2008.Interactions.PRPA_IN201305UV02 does not have enough elements in the list, need between 1 and 2147483647 elements!", location));  } 
if(instance.Sender == null || instance.Sender.NullFlavor != null) { isValid &= false; details.Add(new MARC.Everest.Connectors.MandatoryElementMissingResultDetail(MARC.Everest.Connectors.ResultDetailType.Error, "Property Sender in MARC.Everest.RMIM.UV.NE2008.Interactions.PRPA_IN201305UV02 is marked mandatory and is either not assigned, or is assigned a null flavor. This is not permitted.", location));  } 
if(instance.controlActProcess == null || instance.controlActProcess.NullFlavor != null) { isValid &= false; details.Add(new MARC.Everest.Connectors.MandatoryElementMissingResultDetail(MARC.Everest.Connectors.ResultDetailType.Error, "Property controlActProcess in MARC.Everest.RMIM.UV.NE2008.Interactions.PRPA_IN201305UV02 is marked mandatory and is either not assigned, or is assigned a null flavor. This is not permitted.", location));  } 
;
			outDetails = details.ToArray();;
			return isValid;;
		}
示例#7
0
		public virtual bool Validate(MARC.Everest.Interfaces.IGraphable o, string location, out MARC.Everest.Connectors.IResultDetail[] outDetails) {
			MARC.Everest.RMIM.UV.NE2008.MFMI_MT700711UV01.ControlActProcess<MARC.Everest.RMIM.UV.NE2008.PRPA_MT201306UV02.QueryByParameter,MARC.Everest.RMIM.UV.NE2008.PRPA_MT201310UV02.Patient,System.Object> instance = o as MARC.Everest.RMIM.UV.NE2008.MFMI_MT700711UV01.ControlActProcess<MARC.Everest.RMIM.UV.NE2008.PRPA_MT201306UV02.QueryByParameter,MARC.Everest.RMIM.UV.NE2008.PRPA_MT201310UV02.Patient,System.Object>;;
			outDetails = new MARC.Everest.Connectors.IResultDetail[0]; System.Collections.Generic.List<MARC.Everest.Connectors.IResultDetail> details = new System.Collections.Generic.List<MARC.Everest.Connectors.IResultDetail>(10);;
			bool isValid = true;;
			if(instance == null && o != null) throw new System.NullReferenceException(System.String.Format("Could not cast type '{0}' to 'MARC.Everest.RMIM.UV.NE2008.MFMI_MT700711UV01.ControlActProcess<MARC.Everest.RMIM.UV.NE2008.PRPA_MT201306UV02.QueryByParameter,MARC.Everest.RMIM.UV.NE2008.PRPA_MT201310UV02.Patient,System.Object>'!", o.GetType().FullName));if(instance == null || instance.NullFlavor != null) return true;if(instance.ClassCode == null || instance.ClassCode.NullFlavor != null) { isValid &= false; details.Add(new MARC.Everest.Connectors.MandatoryElementMissingResultDetail(MARC.Everest.Connectors.ResultDetailType.Error, "Property ClassCode in MARC.Everest.RMIM.UV.NE2008.MFMI_MT700711UV01.ControlActProcess`3 is marked mandatory and is either not assigned, or is assigned a null flavor. This is not permitted.", location));  } 
if(instance.MoodCode == null || instance.MoodCode.NullFlavor != null) { isValid &= false; details.Add(new MARC.Everest.Connectors.MandatoryElementMissingResultDetail(MARC.Everest.Connectors.ResultDetailType.Error, "Property MoodCode in MARC.Everest.RMIM.UV.NE2008.MFMI_MT700711UV01.ControlActProcess`3 is marked mandatory and is either not assigned, or is assigned a null flavor. This is not permitted.", location));  } 
if(instance.QueryAck == null || instance.QueryAck.NullFlavor != null) { isValid &= false; details.Add(new MARC.Everest.Connectors.MandatoryElementMissingResultDetail(MARC.Everest.Connectors.ResultDetailType.Error, "Property QueryAck in MARC.Everest.RMIM.UV.NE2008.MFMI_MT700711UV01.ControlActProcess`3 is marked mandatory and is either not assigned, or is assigned a null flavor. This is not permitted.", location));  } 
;
			outDetails = details.ToArray();;
			return isValid;;
		}