Beispiel #1
0
 public Supply()
 {
     this.moodCode          = new CS_R2Impl <Ca.Infoway.Messagebuilder.Model.Cda_ab_shr.Domainvalue.x_DocumentSubstanceMood>();
     this.typeId            = new IIImpl();
     this.templateId        = new LISTImpl <II, Identifier>(typeof(IIImpl));
     this.id                = new LISTImpl <II, Identifier>(typeof(IIImpl));
     this.code              = new CD_R2Impl <Code>();
     this.text              = new EDImpl <EncapsulatedData>();
     this.statusCode        = new CS_R2Impl <Code>();
     this.effectiveTime     = new LISTImpl <SXCM_R2 <MbDate>, MbDate>(typeof(SXCM_R2Impl <MbDate>));
     this.priorityCode      = new LISTImpl <CE_R2 <Code>, CodedTypeR2 <Code> >(typeof(CE_R2Impl <Code>));
     this.repeatNumber      = new IVLImpl <INT, Interval <int?> >();
     this.independentInd    = new BLImpl();
     this.quantity          = new PQImpl();
     this.expectedUseTime   = new IVL_TSImpl();
     this.specimen          = new List <Ca.Infoway.Messagebuilder.Model.Cda_ab_shr.Basemodel.Specimen>();
     this.performer         = new List <Ca.Infoway.Messagebuilder.Model.Cda_ab_shr.Merged.Performer1>();
     this.author            = new List <Ca.Infoway.Messagebuilder.Model.Cda_ab_shr.Basemodel.Author>();
     this.informant         = new List <Ca.Infoway.Messagebuilder.Model.Cda_ab_shr.Merged.Informant12>();
     this.participant       = new List <Ca.Infoway.Messagebuilder.Model.Cda_ab_shr.Merged.Participant1>();
     this.entryRelationship = new List <Ca.Infoway.Messagebuilder.Model.Cda_ab_shr.Basemodel.EntryRelationship>();
     this.reference         = new List <Ca.Infoway.Messagebuilder.Model.Cda_ab_shr.Basemodel.Reference>();
     this.precondition      = new List <Ca.Infoway.Messagebuilder.Model.Cda_ab_shr.Basemodel.Precondition>();
 }
Beispiel #2
0
 protected virtual string CreateTranslation(CodedTypeR2 <Code> translation, CD_R2 <Code> cdAny, int indentLevel, FormatContext
                                            newContext)
 {
     // subclasses must implement as required
     return(string.Empty);
 }
Beispiel #3
0
 public Observation()
 {
     this.templateId = new LISTImpl <II, Identifier>(typeof(IIImpl));
     this.text       = new EDImpl <EncapsulatedData>();
     this.value      = new CD_R2Impl <Code>();
 }
Beispiel #4
0
 protected override string CreateTranslation(CodedTypeR2 <Code> translation, CD_R2 <Code> cdAny, int indentLevel, FormatContext
                                             newContext)
 {
     return(this.Format(newContext, cdAny, indentLevel));
 }
Beispiel #5
0
        public virtual void TestConvertToBareANYNonCollectionType()
        {
            CD_R2 <UnitsOfMeasureCaseSensitive> anyValue = CreateCDR2Instance();

            Assert.IsNull(GenericClassUtil.ConvertToBareANYCollection(anyValue));
        }
Beispiel #6
0
        public virtual void TestGetValueFromANYNonNullValue()
        {
            CD_R2 <UnitsOfMeasureCaseSensitive> anyValue = CreateCDR2Instance();

            Assert.AreEqual(anyValue.Value, GenericClassUtil.GetValueFromANY(anyValue));
        }