/// <summary>
        /// Init object.
        /// </summary>
        public override void Init(BreastRadiologyDocument doc, Base baseResource = null)
        {
            Observation resource = (Observation)baseResource;

            if (resource == null)
            {
                resource = new Observation();
            }
            base.Init(doc, resource);
            //+ Constructor
            this.Resource.Code     = FixedValue_ObservationCode();                                                                                               // DefineBase.cs:177
            this.Resource.BodySite = FixedValue_ObservationBodySite();                                                                                           // DefineBase.cs:177
            SetProfileUrl("http://hl7.org/fhir/us/breast-radiology/StructureDefinition/SectionFindingsRightBreast");                                             // DefineBase.cs:238
            // Called from BuildMemberReferences.cs, Line 188
            this.MGFinding = new MMGFinding(0, 1);                                                                                                               // BuildMemberBase.cs:379
            // Called from BuildMemberReferences.cs, Line 188
            this.MRIFinding = new MMRIFinding(0, 1);                                                                                                             // BuildMemberBase.cs:379
            // Called from BuildMemberReferences.cs, Line 188
            this.NMFinding = new MNMFinding(0, 1);                                                                                                               // BuildMemberBase.cs:379
            // Called from BuildMemberReferences.cs, Line 188
            this.USFinding = new MUSFinding(0, 1);                                                                                                               // BuildMemberBase.cs:379
            // Called from BuildMemberElement.cs, Line 123
            this.BodySite = new MBodySite(1, 1);                                                                                                                 // BuildMemberBase.cs:379
            //- Constructor
        }
        /// <summary>
        /// Init object.
        /// </summary>
        public override void Init(BreastRadiologyDocument doc, Base baseResource = null)
        {
            Observation resource = (Observation)baseResource;

            if (resource == null)
            {
                resource = new Observation();
            }
            base.Init(doc, resource);
            //+ Constructor
            this.Resource.Code = FixedValue_ObservationCode();                                                                                                   // DefineBase.cs:177
            SetProfileUrl("http://hl7.org/fhir/us/breast-radiology/StructureDefinition/AbnormalityForeignObject");                                               // DefineBase.cs:238
            // Called from BuildMemberElement.cs, Line 123
            this.BodySite = new MBodySite(1, 1);                                                                                                                 // BuildMemberBase.cs:379
            // Called from BuildMemberComponents.cs, Line 202
            this.ObsChanges = new MObsChanges(0, -1);                                                                                                            // BuildMemberBase.cs:379
            // Called from BuildMemberComponents.cs, Line 202
            this.BiRadsAssessmentCategory = new MBiRadsAssessmentCategory(0, 1);                                                                                 // BuildMemberBase.cs:379
            // Called from BuildMemberComponents.cs, Line 202
            this.NotPreviouslySeen = new MNotPreviouslySeen(0, -1);                                                                                              // BuildMemberBase.cs:379
            // Called from BuildMemberComponents.cs, Line 202
            this.CorrespondsWith = new MCorrespondsWith(0, -1);                                                                                                  // BuildMemberBase.cs:379
            // Called from BuildMemberComponents.cs, Line 202
            this.PreviouslyDemonstratedBy = new MPreviouslyDemonstratedBy(0, -1);                                                                                // BuildMemberBase.cs:379
            // Called from BuildMemberReferences.cs, Line 188
            this.AssociatedFeature = new MAssociatedFeature(0, -1);                                                                                              // BuildMemberBase.cs:379
            // Called from BuildMemberReferences.cs, Line 188
            this.ConsistentWith = new MConsistentWith(0, -1);                                                                                                    // BuildMemberBase.cs:379
            // Called from BuildMemberComponents.cs, Line 202
            this.AbnormalityForeignObjectType = new MAbnormalityForeignObjectType(1, 1);                                                                         // BuildMemberBase.cs:379
            //- Constructor
        }
        /// <summary>
        /// Init object.
        /// </summary>
        public override void Init(BreastRadiologyDocument doc, Base baseResource = null)
        {
            Composition resource = (Composition)baseResource;

            if (resource == null)
            {
                resource = new Composition();
            }
            base.Init(doc, resource);
            //+ Constructor
            this.Resource.Type = FixedValue_CompositionType();                                                                                                   // DefineBase.cs:177
            SetProfileUrl("http://hl7.org/fhir/us/breast-radiology/StructureDefinition/BreastRadComposition");                                                   // DefineBase.cs:238
            // Called from BuildMemberSection.cs, Line 225
            this.Report = new MReport(1, 1);                                                                                                                     // BuildMemberBase.cs:379
            // Called from BuildMemberSection.cs, Line 225
            this.Impressions = new MImpressions(0, -1);                                                                                                          // BuildMemberBase.cs:379
            // Called from BuildMemberSection.cs, Line 225
            this.FindingsRightBreast = new MFindingsRightBreast(0, 1);                                                                                           // BuildMemberBase.cs:379
            // Called from BuildMemberSection.cs, Line 225
            this.FindingsLeftBreast = new MFindingsLeftBreast(0, 1);                                                                                             // BuildMemberBase.cs:379
            // Called from BuildMemberSection.cs, Line 225
            this.RelatedResources = new MRelatedResources(0, -1);                                                                                                // BuildMemberBase.cs:379
            // Called from BuildMemberSection.cs, Line 225
            this.Recommendations = new MRecommendations(0, -1);                                                                                                  // BuildMemberBase.cs:379
            // Called from BuildMemberSection.cs, Line 225
            this.Admin = new MAdmin(0, -1);                                                                                                                      // BuildMemberBase.cs:379
            //- Constructor
        }
Exemple #4
0
        }                                                                                                                                                        // BuildMemberComponents.cs:150

        //- !Components
        // BuildMemberComponents.cs:128
        // BuildMemberComponents.cs:128
        // BuildMemberComponents.cs:128
        // BuildMemberComponents.cs:128
        // BuildMemberComponents.cs:128
        // BuildMemberComponents.cs:128
        // BuildMemberComponents.cs:128
        // BuildMemberComponents.cs:128
        // BuildMemberReferences.cs:116
        //+ !HasMembers
        // BuildMemberReferences.cs:119
        // BuildMemberReferences.cs:120
        /// <summary>
        /// Read all values from resource into this instance
        /// </summary>
        private void ReadHasMembers(BreastRadiologyDocument doc)                                                                                                 // BuildMemberReferences.cs:123
        {                                                                                                                                                        // BuildMemberReferences.cs:124
            List <ResourceReference> items = this.Resource.GetValue <ResourceReference>("hasMember").ToList();                                                   // BuildMemberReferences.cs:125

            //+ ReadHasMembers
            this.ConsistentWith.Read(this.Doc, items);                                                                                                           // BuildMemberReferences.cs:78
            //- ReadHasMembers
        }                                                                                                                                                        // BuildMemberReferences.cs:127
Exemple #5
0
        }                                                                                                                                                        // BuildMemberReferences.cs:127

        // BuildMemberReferences.cs:129
        // BuildMemberReferences.cs:130
        /// <summary>
        /// Write all values from this instance into resource
        /// </summary>
        private void WriteHasMembers(BreastRadiologyDocument doc)                                                                                                // BuildMemberReferences.cs:133
        {                                                                                                                                                        // BuildMemberReferences.cs:134
            List <ResourceReference> items = new List <ResourceReference>();                                                                                     // BuildMemberReferences.cs:135

            //+ WriteHasMembers
            items.AddRange(this.ConsistentWith.Write(this.Doc));                                                                                                 // BuildMemberReferences.cs:96
            //- WriteHasMembers
            this.Resource.SetValue("hasMember", items);                                                                                                          // BuildMemberReferences.cs:137
        }                                                                                                                                                        // BuildMemberReferences.cs:138
Exemple #6
0
        }                                                                                                                                                 // FhirConstruct.cs:836

        // BuildMemberComponents.cs:128
        //+ !Components
        // BuildMemberComponents.cs:131
        // BuildMemberComponents.cs:132
        /// <summary>
        /// Read all component values from resource into this instance
        /// </summary>
        private void ReadComponents(BreastRadiologyDocument doc)                                                                                                 // BuildMemberComponents.cs:135
        {                                                                                                                                                        // BuildMemberComponents.cs:136
            List <Observation.ComponentComponent> items = this.Resource.GetValue <Observation.ComponentComponent>("component").ToList();                         // BuildMemberComponents.cs:137

            //+ ReadComponents
            this.ObsCount.Read(this.Doc, items);                                                                                                                 // BuildMemberComponents.cs:90
            this.FeatureType.Read(this.Doc, items);                                                                                                              // BuildMemberComponents.cs:90
            //- ReadComponents
        }                                                                                                                                                        // BuildMemberComponents.cs:139
Exemple #7
0
        }                                                                                                                                                 // FhirConstruct.cs:836

        // BuildMemberReferences.cs:116
        //+ !HasMembers
        // BuildMemberReferences.cs:119
        // BuildMemberReferences.cs:120
        /// <summary>
        /// Read all values from resource into this instance
        /// </summary>
        private void ReadHasMembers(BreastRadiologyDocument doc)                                                                                                 // BuildMemberReferences.cs:123
        {                                                                                                                                                        // BuildMemberReferences.cs:124
            List <ResourceReference> items = this.Resource.GetValue <ResourceReference>("hasMember").ToList();                                                   // BuildMemberReferences.cs:125

            //+ ReadHasMembers
            this.TumorSatellite.Read(this.Doc, items);                                                                                                           // BuildMemberReferences.cs:78
            this.AssociatedFeature.Read(this.Doc, items);                                                                                                        // BuildMemberReferences.cs:78
            //- ReadHasMembers
        }                                                                                                                                                        // BuildMemberReferences.cs:127
Exemple #8
0
 public virtual void Init(BreastRadiologyDocument doc, Base resource = null)
 {
     this.Doc = doc;
     if (resource == null)
     {
         return;
     }
     this.resource = resource;
     this.Doc.Register(this);
 }
Exemple #9
0
        }                                                                                                                                                        // BuildMemberComponents.cs:139

        // BuildMemberComponents.cs:141
        // BuildMemberComponents.cs:142
        /// <summary>
        /// Write all values from this instance into resource
        /// </summary>
        private void WriteComponents(BreastRadiologyDocument doc)                                                                                                // BuildMemberComponents.cs:145
        {                                                                                                                                                        // BuildMemberComponents.cs:146
            List <Observation.ComponentComponent> items = new List <Observation.ComponentComponent>();                                                           // BuildMemberComponents.cs:147

            //+ WriteComponents
            items.AddRange(this.ObsCount.Write(this.Doc));                                                                                                       // BuildMemberComponents.cs:108
            items.AddRange(this.FeatureType.Write(this.Doc));                                                                                                    // BuildMemberComponents.cs:108
            //- WriteComponents
            this.Resource.SetValue("component", items);                                                                                                          // BuildMemberComponents.cs:149
        }                                                                                                                                                        // BuildMemberComponents.cs:150
Exemple #10
0
        }                                                                                                                                                        // BuildMemberReferences.cs:127

        // BuildMemberReferences.cs:129
        // BuildMemberReferences.cs:130
        /// <summary>
        /// Write all values from this instance into resource
        /// </summary>
        private void WriteHasMembers(BreastRadiologyDocument doc)                                                                                                // BuildMemberReferences.cs:133
        {                                                                                                                                                        // BuildMemberReferences.cs:134
            List <ResourceReference> items = new List <ResourceReference>();                                                                                     // BuildMemberReferences.cs:135

            //+ WriteHasMembers
            items.AddRange(this.TumorSatellite.Write(this.Doc));                                                                                                 // BuildMemberReferences.cs:96
            items.AddRange(this.AssociatedFeature.Write(this.Doc));                                                                                              // BuildMemberReferences.cs:96
            //- WriteHasMembers
            this.Resource.SetValue("hasMember", items);                                                                                                          // BuildMemberReferences.cs:137
        }                                                                                                                                                        // BuildMemberReferences.cs:138
 /// <summary>
 /// Return all sections that have the indicated section code.
 /// There should only ever be one returned.
 /// </summary>
 protected IEnumerable <Composition.SectionComponent> IsMember(BreastRadiologyDocument doc,
                                                               IEnumerable <Composition.SectionComponent> sections,
                                                               CodeableConcept code)
 {
     foreach (Composition.SectionComponent section in sections)
     {
         if (section.Code.IsCode(code))
         {
             yield return(section);
         }
     }
 }
        /// <summary>
        /// Create a new BreastRadiologyDocument.
        /// </summary>
        /// <returns></returns>
        public static BreastRadiologyDocument Create()
        {
            BreastRadiologyDocument retVal = new BreastRadiologyDocument();

            retVal.ResourceBag = new ResourceBag();
            Composition index = new Composition();

            index.Id     = "Index";
            retVal.Index = new BreastRadComposition(retVal, index);
            retVal.ResourceBag.AddResource(retVal.Index.Resource);
            return(retVal);
        }
 protected IEnumerable <Extension> IsMember(BreastRadiologyDocument doc,
                                            IEnumerable <Extension> extensions,
                                            String url)
 {
     foreach (Extension extension in extensions)
     {
         if (String.Compare(extension.Url, url, StringComparison.OrdinalIgnoreCase) == 0)
         {
             yield return(extension);
         }
     }
 }
 /// <summary>
 /// Return all components that have the indicated component code.
 /// </summary>
 protected IEnumerable <Observation.ComponentComponent> IsMember(BreastRadiologyDocument doc,
                                                                 IEnumerable <Observation.ComponentComponent> components,
                                                                 CodeableConcept code)
 {
     foreach (Observation.ComponentComponent component in components)
     {
         if (component.Code.IsCode(code))
         {
             yield return(component);
         }
     }
 }
Exemple #15
0
        /// <summary>
        /// Init object.
        /// </summary>
        public override void Init(BreastRadiologyDocument doc, Base baseResource = null)
        {
            ServiceRequest resource = (ServiceRequest)baseResource;

            if (resource == null)
            {
                resource = new ServiceRequest();
            }
            base.Init(doc, resource);
            //+ Constructor
            SetProfileUrl("http://hl7.org/fhir/us/breast-radiology/StructureDefinition/ServiceRecommendation");                                                  // DefineBase.cs:238
            //- Constructor
        }
        }                                                                                                                                                 // FhirConstruct.cs:836

        // BuildMemberComponents.cs:128
        //+ !Components
        // BuildMemberComponents.cs:131
        // BuildMemberComponents.cs:132
        /// <summary>
        /// Read all component values from resource into this instance
        /// </summary>
        private void ReadComponents(BreastRadiologyDocument doc)                                                                                                 // BuildMemberComponents.cs:135
        {                                                                                                                                                        // BuildMemberComponents.cs:136
            List <Observation.ComponentComponent> items = this.Resource.GetValue <Observation.ComponentComponent>("component").ToList();                         // BuildMemberComponents.cs:137

            //+ ReadComponents
            this.ObsChanges.Read(this.Doc, items);                                                                                                               // BuildMemberComponents.cs:90
            this.BiRadsAssessmentCategory.Read(this.Doc, items);                                                                                                 // BuildMemberComponents.cs:90
            this.NotPreviouslySeen.Read(this.Doc, items);                                                                                                        // BuildMemberComponents.cs:90
            this.CorrespondsWith.Read(this.Doc, items);                                                                                                          // BuildMemberComponents.cs:90
            this.PreviouslyDemonstratedBy.Read(this.Doc, items);                                                                                                 // BuildMemberComponents.cs:90
            this.AbnormalityForeignObjectType.Read(this.Doc, items);                                                                                             // BuildMemberComponents.cs:90
            //- ReadComponents
        }                                                                                                                                                        // BuildMemberComponents.cs:139
        }                                                                                                                                                        // BuildMemberComponents.cs:139

        // BuildMemberComponents.cs:141
        // BuildMemberComponents.cs:142
        /// <summary>
        /// Write all values from this instance into resource
        /// </summary>
        private void WriteComponents(BreastRadiologyDocument doc)                                                                                                // BuildMemberComponents.cs:145
        {                                                                                                                                                        // BuildMemberComponents.cs:146
            List <Observation.ComponentComponent> items = new List <Observation.ComponentComponent>();                                                           // BuildMemberComponents.cs:147

            //+ WriteComponents
            items.AddRange(this.ObsChanges.Write(this.Doc));                                                                                                     // BuildMemberComponents.cs:108
            items.AddRange(this.BiRadsAssessmentCategory.Write(this.Doc));                                                                                       // BuildMemberComponents.cs:108
            items.AddRange(this.NotPreviouslySeen.Write(this.Doc));                                                                                              // BuildMemberComponents.cs:108
            items.AddRange(this.CorrespondsWith.Write(this.Doc));                                                                                                // BuildMemberComponents.cs:108
            items.AddRange(this.PreviouslyDemonstratedBy.Write(this.Doc));                                                                                       // BuildMemberComponents.cs:108
            items.AddRange(this.AbnormalityForeignObjectType.Write(this.Doc));                                                                                   // BuildMemberComponents.cs:108
            //- WriteComponents
            this.Resource.SetValue("component", items);                                                                                                          // BuildMemberComponents.cs:149
        }                                                                                                                                                        // BuildMemberComponents.cs:150
        }                                                                                                                                                 // FhirConstruct.cs:836

        // BuildMemberSection.cs:137
        //+ !Sections
        // BuildMemberSection.cs:140
        // BuildMemberSection.cs:141
        /// <summary>
        /// Read all values from resource into this instance
        /// </summary>
        private void ReadSections(BreastRadiologyDocument doc)                                                                                            // BuildMemberSection.cs:144
        {                                                                                                                                                 // BuildMemberSection.cs:145
            List <Composition.SectionComponent> items = this.Resource.GetValue <Composition.SectionComponent>("section").ToList();                        // BuildMemberSection.cs:146

            //+ ReadSections
            this.Report.Read(this.Doc, items);                                                                                                            // BuildMemberSection.cs:91
            this.Impressions.Read(this.Doc, items);                                                                                                       // BuildMemberSection.cs:91
            this.FindingsRightBreast.Read(this.Doc, items);                                                                                               // BuildMemberSection.cs:91
            this.FindingsLeftBreast.Read(this.Doc, items);                                                                                                // BuildMemberSection.cs:91
            this.RelatedResources.Read(this.Doc, items);                                                                                                  // BuildMemberSection.cs:91
            this.Recommendations.Read(this.Doc, items);                                                                                                   // BuildMemberSection.cs:91
            this.Admin.Read(this.Doc, items);                                                                                                             // BuildMemberSection.cs:91
            //- ReadSections
        }                                                                                                                                                 // BuildMemberSection.cs:148
        /// <summary>
        /// Init object.
        /// </summary>
        public override void Init(BreastRadiologyDocument doc, Base baseResource = null)
        {
            DiagnosticReport resource = (DiagnosticReport)baseResource;

            if (resource == null)
            {
                resource = new DiagnosticReport();
            }
            base.Init(doc, resource);
            //+ Constructor
            this.Resource.Code = FixedValue_DiagnosticReportCode();                                                                                              // DefineBase.cs:177
            SetProfileUrl("http://hl7.org/fhir/us/breast-radiology/StructureDefinition/BreastRadReport");                                                        // DefineBase.cs:238
            //- Constructor
        }
Exemple #20
0
        /// <summary>
        /// Init object.
        /// </summary>
        public override void Init(BreastRadiologyDocument doc, Base baseResource = null)
        {
            Observation resource = (Observation)baseResource;

            if (resource == null)
            {
                resource = new Observation();
            }
            base.Init(doc, resource);
            //+ Constructor
            this.Resource.Code = FixedValue_ObservationCode();                                                                                                   // DefineBase.cs:177
            SetProfileUrl("http://hl7.org/fhir/us/breast-radiology/StructureDefinition/MRIFinding");                                                             // DefineBase.cs:238
            //- Constructor
        }
        }                                                                                                                                                 // BuildMemberSection.cs:148

        // BuildMemberSection.cs:150
        // BuildMemberSection.cs:151
        /// <summary>
        /// Write all values from this instance into resource
        /// </summary>
        private void WriteSections(BreastRadiologyDocument doc)                                                                                           // BuildMemberSection.cs:154
        {                                                                                                                                                 // BuildMemberSection.cs:155
            List <Composition.SectionComponent> items = new List <Composition.SectionComponent>();                                                        // BuildMemberSection.cs:156

            //+ WriteSections
            items.AddRange(this.Report.Write(this.Doc));                                                                                                  // BuildMemberSection.cs:117
            items.AddRange(this.Impressions.Write(this.Doc));                                                                                             // BuildMemberSection.cs:117
            items.AddRange(this.FindingsRightBreast.Write(this.Doc));                                                                                     // BuildMemberSection.cs:117
            items.AddRange(this.FindingsLeftBreast.Write(this.Doc));                                                                                      // BuildMemberSection.cs:117
            items.AddRange(this.RelatedResources.Write(this.Doc));                                                                                        // BuildMemberSection.cs:117
            items.AddRange(this.Recommendations.Write(this.Doc));                                                                                         // BuildMemberSection.cs:117
            items.AddRange(this.Admin.Write(this.Doc));                                                                                                   // BuildMemberSection.cs:117
            //- WriteSections
            this.Resource.SetValue("section", items);                                                                                                     // BuildMemberSection.cs:158
        }                                                                                                                                                 // BuildMemberSection.cs:159
        /// <summary>
        /// Create a new BreastRadiologyDocument and load it with the passed fhir document.
        /// </summary>
        /// <returns></returns>
        public static BreastRadiologyDocument Read(Bundle bundle)
        {
            BreastRadiologyDocument retVal = new BreastRadiologyDocument();

            retVal.LoadBundle(bundle);

            // now write all the others.
            foreach (BaseBase baseItem in retVal.items.Values.ToArray())
            {
                baseItem.Read();;
            }

            //$retVal.Subject = retVal.Index.Resource.Subject;
            //$retVal.Encounter = retVal.Index.Resource.Encounter;
            return(retVal);
        }
        }                                                                                                                                                 // FhirConstruct.cs:836

        // BuildMemberComponents.cs:128
        //+ !Components
        // BuildMemberComponents.cs:131
        // BuildMemberComponents.cs:132
        /// <summary>
        /// Read all component values from resource into this instance
        /// </summary>
        private void ReadComponents(BreastRadiologyDocument doc)                                                                                                 // BuildMemberComponents.cs:135
        {                                                                                                                                                        // BuildMemberComponents.cs:136
            List <Observation.ComponentComponent> items = this.Resource.GetValue <Observation.ComponentComponent>("component").ToList();                         // BuildMemberComponents.cs:137

            //+ ReadComponents
            this.ObsChanges.Read(this.Doc, items);                                                                                                               // BuildMemberComponents.cs:90
            this.BiRadsAssessmentCategory.Read(this.Doc, items);                                                                                                 // BuildMemberComponents.cs:90
            this.Orientation.Read(this.Doc, items);                                                                                                              // BuildMemberComponents.cs:90
            this.Shape.Read(this.Doc, items);                                                                                                                    // BuildMemberComponents.cs:90
            this.Margin.Read(this.Doc, items);                                                                                                                   // BuildMemberComponents.cs:90
            this.MgDensity.Read(this.Doc, items);                                                                                                                // BuildMemberComponents.cs:90
            this.NotPreviouslySeen.Read(this.Doc, items);                                                                                                        // BuildMemberComponents.cs:90
            this.ObsCount.Read(this.Doc, items);                                                                                                                 // BuildMemberComponents.cs:90
            this.CorrespondsWith.Read(this.Doc, items);                                                                                                          // BuildMemberComponents.cs:90
            this.PreviouslyDemonstratedBy.Read(this.Doc, items);                                                                                                 // BuildMemberComponents.cs:90
            this.AsymmetryType.Read(this.Doc, items);                                                                                                            // BuildMemberComponents.cs:90
            //- ReadComponents
        }                                                                                                                                                        // BuildMemberComponents.cs:139
Exemple #24
0
        /// <summary>
        /// Init object.
        /// </summary>
        public override void Init(BreastRadiologyDocument doc, Base baseResource = null)
        {
            Observation resource = (Observation)baseResource;

            if (resource == null)
            {
                resource = new Observation();
            }
            base.Init(doc, resource);
            //+ Constructor
            this.Resource.Code = FixedValue_ObservationCode();                                                                                                   // DefineBase.cs:177
            SetProfileUrl("http://hl7.org/fhir/us/breast-radiology/StructureDefinition/ConsistentWith");                                                         // DefineBase.cs:238
            // Called from BuildMemberComponents.cs, Line 202
            this.Value = new MValue(1, 1);                                                                                                                       // BuildMemberBase.cs:379
            // Called from BuildMemberComponents.cs, Line 202
            this.Qualifier = new MQualifier(0, -1);                                                                                                              // BuildMemberBase.cs:379
            //- Constructor
        }
        }                                                                                                                                                 // FhirConstruct.cs:836

        // BuildMemberComponents.cs:128
        //+ !Components
        // BuildMemberComponents.cs:131
        // BuildMemberComponents.cs:132
        /// <summary>
        /// Read all component values from resource into this instance
        /// </summary>
        private void ReadComponents(BreastRadiologyDocument doc)                                                                                                 // BuildMemberComponents.cs:135
        {                                                                                                                                                        // BuildMemberComponents.cs:136
            List <Observation.ComponentComponent> items = this.Resource.GetValue <Observation.ComponentComponent>("component").ToList();                         // BuildMemberComponents.cs:137

            //+ ReadComponents
            this.ObsChanges.Read(this.Doc, items);                                                                                                               // BuildMemberComponents.cs:90
            this.BiRadsAssessmentCategory.Read(this.Doc, items);                                                                                                 // BuildMemberComponents.cs:90
            this.Orientation.Read(this.Doc, items);                                                                                                              // BuildMemberComponents.cs:90
            this.Shape.Read(this.Doc, items);                                                                                                                    // BuildMemberComponents.cs:90
            this.Margin.Read(this.Doc, items);                                                                                                                   // BuildMemberComponents.cs:90
            this.MgDensity.Read(this.Doc, items);                                                                                                                // BuildMemberComponents.cs:90
            this.ObsCount.Read(this.Doc, items);                                                                                                                 // BuildMemberComponents.cs:90
            this.ObsDistribution.Read(this.Doc, items);                                                                                                          // BuildMemberComponents.cs:90
            this.ObsDistRegionSize.Read(this.Doc, items);                                                                                                        // BuildMemberComponents.cs:90
            this.ObsSize.Read(this.Doc, items);                                                                                                                  // BuildMemberComponents.cs:90
            this.PreviouslyDemonstratedBy.Read(this.Doc, items);                                                                                                 // BuildMemberComponents.cs:90
            this.FibroAdenomaType.Read(this.Doc, items);                                                                                                         // BuildMemberComponents.cs:90
            //- ReadComponents
        }                                                                                                                                                        // BuildMemberComponents.cs:139
        protected IEnumerable <ResourceReference> IsMember(BreastRadiologyDocument doc,
                                                           IEnumerable <ResourceReference> references,
                                                           IEnumerable <String> targetUrls)
        {
            foreach (ResourceReference resRef in references)
            {
                Observation referencedResource = doc.ReferencedResource <Observation>(resRef);
                String      profile            = referencedResource.Meta.Profile.First();
                foreach (String targetUrl in targetUrls)
                {
                    if (BLMisc.SameUrl(profile, targetUrl))
                    {
                        yield return(resRef);

                        break;
                    }
                }
            }
        }
        /// <summary>
        /// Init object.
        /// </summary>
        public override void Init(BreastRadiologyDocument doc, Base baseResource = null)
        {
            Observation resource = (Observation)baseResource;

            if (resource == null)
            {
                resource = new Observation();
            }
            base.Init(doc, resource);
            //+ Constructor
            this.Resource.Code = FixedValue_ObservationCode();                                                                                                   // DefineBase.cs:177
            SetProfileUrl("http://hl7.org/fhir/us/breast-radiology/StructureDefinition/AbnormalityFibroadenoma");                                                // DefineBase.cs:238
            // Called from BuildMemberElement.cs, Line 123
            this.BodySite = new MBodySite(1, 1);                                                                                                                 // BuildMemberBase.cs:379
            // Called from BuildMemberComponents.cs, Line 202
            this.ObsChanges = new MObsChanges(0, -1);                                                                                                            // BuildMemberBase.cs:379
            // Called from BuildMemberComponents.cs, Line 202
            this.BiRadsAssessmentCategory = new MBiRadsAssessmentCategory(0, 1);                                                                                 // BuildMemberBase.cs:379
            // Called from BuildMemberComponents.cs, Line 202
            this.Orientation = new MOrientation(0, 1);                                                                                                           // BuildMemberBase.cs:379
            // Called from BuildMemberComponents.cs, Line 202
            this.Shape = new MShape(0, 1);                                                                                                                       // BuildMemberBase.cs:379
            // Called from BuildMemberComponents.cs, Line 202
            this.Margin = new MMargin(0, 1);                                                                                                                     // BuildMemberBase.cs:379
            // Called from BuildMemberComponents.cs, Line 202
            this.MgDensity = new MMgDensity(0, 1);                                                                                                               // BuildMemberBase.cs:379
            // Called from BuildMemberComponents.cs, Line 202
            this.ObsCount = new MObsCount(0, 1);                                                                                                                 // BuildMemberBase.cs:379
            // Called from BuildMemberComponents.cs, Line 202
            this.ObsDistribution = new MObsDistribution(0, -1);                                                                                                  // BuildMemberBase.cs:379
            // Called from BuildMemberComponents.cs, Line 202
            this.ObsDistRegionSize = new MObsDistRegionSize(0, 3);                                                                                               // BuildMemberBase.cs:379
            // Called from BuildMemberComponents.cs, Line 202
            this.ObsSize = new MObsSize(0, 3);                                                                                                                   // BuildMemberBase.cs:379
            // Called from BuildMemberComponents.cs, Line 202
            this.PreviouslyDemonstratedBy = new MPreviouslyDemonstratedBy(0, -1);                                                                                // BuildMemberBase.cs:379
            // Called from BuildMemberReferences.cs, Line 188
            this.AssociatedFeature = new MAssociatedFeature(0, -1);                                                                                              // BuildMemberBase.cs:379
            // Called from BuildMemberComponents.cs, Line 202
            this.FibroAdenomaType = new MFibroAdenomaType(0, 1);                                                                                                 // BuildMemberBase.cs:379
            //- Constructor
        }
        }                                                                                                                                                        // BuildMemberComponents.cs:139

        // BuildMemberComponents.cs:141
        // BuildMemberComponents.cs:142
        /// <summary>
        /// Write all values from this instance into resource
        /// </summary>
        private void WriteComponents(BreastRadiologyDocument doc)                                                                                                // BuildMemberComponents.cs:145
        {                                                                                                                                                        // BuildMemberComponents.cs:146
            List <Observation.ComponentComponent> items = new List <Observation.ComponentComponent>();                                                           // BuildMemberComponents.cs:147

            //+ WriteComponents
            items.AddRange(this.ObsChanges.Write(this.Doc));                                                                                                     // BuildMemberComponents.cs:108
            items.AddRange(this.BiRadsAssessmentCategory.Write(this.Doc));                                                                                       // BuildMemberComponents.cs:108
            items.AddRange(this.Orientation.Write(this.Doc));                                                                                                    // BuildMemberComponents.cs:108
            items.AddRange(this.Shape.Write(this.Doc));                                                                                                          // BuildMemberComponents.cs:108
            items.AddRange(this.Margin.Write(this.Doc));                                                                                                         // BuildMemberComponents.cs:108
            items.AddRange(this.MgDensity.Write(this.Doc));                                                                                                      // BuildMemberComponents.cs:108
            items.AddRange(this.ObsCount.Write(this.Doc));                                                                                                       // BuildMemberComponents.cs:108
            items.AddRange(this.ObsDistribution.Write(this.Doc));                                                                                                // BuildMemberComponents.cs:108
            items.AddRange(this.ObsDistRegionSize.Write(this.Doc));                                                                                              // BuildMemberComponents.cs:108
            items.AddRange(this.ObsSize.Write(this.Doc));                                                                                                        // BuildMemberComponents.cs:108
            items.AddRange(this.PreviouslyDemonstratedBy.Write(this.Doc));                                                                                       // BuildMemberComponents.cs:108
            items.AddRange(this.FibroAdenomaType.Write(this.Doc));                                                                                               // BuildMemberComponents.cs:108
            //- WriteComponents
            this.Resource.SetValue("component", items);                                                                                                          // BuildMemberComponents.cs:149
        }                                                                                                                                                        // BuildMemberComponents.cs:150
Exemple #29
0
        /// <summary>
        /// Init object.
        /// </summary>
        public override void Init(BreastRadiologyDocument doc, Base baseResource = null)
        {
            Observation resource = (Observation)baseResource;

            if (resource == null)
            {
                resource = new Observation();
            }
            base.Init(doc, resource);
            //+ Constructor
            this.Resource.Code = FixedValue_ObservationCode();                                                                                                   // DefineBase.cs:177
            SetProfileUrl("http://hl7.org/fhir/us/breast-radiology/StructureDefinition/AssociatedFeature");                                                      // DefineBase.cs:238
            // Called from BuildMemberElement.cs, Line 123
            this.BodySite = new MBodySite(1, 1);                                                                                                                 // BuildMemberBase.cs:379
            // Called from BuildMemberComponents.cs, Line 202
            this.ObsCount = new MObsCount(0, 1);                                                                                                                 // BuildMemberBase.cs:379
            // Called from BuildMemberComponents.cs, Line 202
            this.FeatureType = new MFeatureType(1, 1);                                                                                                           // BuildMemberBase.cs:379
            //- Constructor
        }
Exemple #30
0
        }                                                                                                                                                 // FhirConstruct.cs:836

        // BuildMemberReferences.cs:116
        //+ !HasMembers
        // BuildMemberReferences.cs:119
        // BuildMemberReferences.cs:120
        /// <summary>
        /// Read all values from resource into this instance
        /// </summary>
        private void ReadHasMembers(BreastRadiologyDocument doc)                                                                                          // BuildMemberReferences.cs:123
        {                                                                                                                                                 // BuildMemberReferences.cs:124
            List <ResourceReference> items = this.Resource.GetValue <ResourceReference>("hasMember").ToList();                                            // BuildMemberReferences.cs:125

            //+ ReadHasMembers
            this.AbnormalityCyst.Read(this.Doc, items);                                                                                                   // BuildMemberReferences.cs:78
            this.AbnormalityDuct.Read(this.Doc, items);                                                                                                   // BuildMemberReferences.cs:78
            this.AbnormalityForeignObject.Read(this.Doc, items);                                                                                          // BuildMemberReferences.cs:78
            this.AbnormalityLymphNode.Read(this.Doc, items);                                                                                              // BuildMemberReferences.cs:78
            this.AbnormalityMass.Read(this.Doc, items);                                                                                                   // BuildMemberReferences.cs:78
            this.AssociatedFeature.Read(this.Doc, items);                                                                                                 // BuildMemberReferences.cs:78
            this.AbnormalityFibroadenoma.Read(this.Doc, items);                                                                                           // BuildMemberReferences.cs:78
            this.MGAbnormalityArchitecturalDistortion.Read(this.Doc, items);                                                                              // BuildMemberReferences.cs:78
            this.MGAbnormalityAsymmetry.Read(this.Doc, items);                                                                                            // BuildMemberReferences.cs:78
            this.MGAbnormalityCalcification.Read(this.Doc, items);                                                                                        // BuildMemberReferences.cs:78
            this.MGAbnormalityDensity.Read(this.Doc, items);                                                                                              // BuildMemberReferences.cs:78
            this.MGAbnormalityFatNecrosis.Read(this.Doc, items);                                                                                          // BuildMemberReferences.cs:78
            this.MGBreastDensity.Read(this.Doc, items);                                                                                                   // BuildMemberReferences.cs:78
            //- ReadHasMembers
        }                                                                                                                                                 // BuildMemberReferences.cs:127