diff --git a/src/Hl7.Fhir.Base/CompatibilitySuppressions.xml b/src/Hl7.Fhir.Base/CompatibilitySuppressions.xml index 82dbcd9130..3115716df0 100644 --- a/src/Hl7.Fhir.Base/CompatibilitySuppressions.xml +++ b/src/Hl7.Fhir.Base/CompatibilitySuppressions.xml @@ -7,4 +7,32 @@ lib/netstandard2.0/Hl7.Fhir.Base.dll lib/net8.0/Hl7.Fhir.Base.dll + + CP0002 + M:Hl7.Fhir.Model.Parameters.get_Item(System.String) + lib/net8.0/Hl7.Fhir.Base.dll + lib/net8.0/Hl7.Fhir.Base.dll + true + + + CP0002 + M:Hl7.Fhir.Utility.ReflectionHelper.IsTypedCollection(System.Type) + lib/net8.0/Hl7.Fhir.Base.dll + lib/net8.0/Hl7.Fhir.Base.dll + true + + + CP0002 + M:Hl7.Fhir.Model.Parameters.get_Item(System.String) + lib/netstandard2.0/Hl7.Fhir.Base.dll + lib/netstandard2.0/Hl7.Fhir.Base.dll + true + + + CP0002 + M:Hl7.Fhir.Utility.ReflectionHelper.IsTypedCollection(System.Type) + lib/netstandard2.0/Hl7.Fhir.Base.dll + lib/netstandard2.0/Hl7.Fhir.Base.dll + true + \ No newline at end of file diff --git a/src/Hl7.Fhir.Base/Introspection/PropertyMapping.cs b/src/Hl7.Fhir.Base/Introspection/PropertyMapping.cs index 03e3257761..6f0af77f8e 100644 --- a/src/Hl7.Fhir.Base/Introspection/PropertyMapping.cs +++ b/src/Hl7.Fhir.Base/Introspection/PropertyMapping.cs @@ -191,7 +191,7 @@ public static bool TryCreate(PropertyInfo prop, [NotNullWhen(true)] out Property // FHIR repeating elements. If we would allow this, we'd also have stuff like `string` and binary // data as repeating element, and would need to exclude these exceptions on a case by case basis. // This is pretty ugly, so we prefer to not support arrays - you should use lists instead. - bool isCollection = ReflectionHelper.IsTypedCollection(prop.PropertyType) && !prop.PropertyType.IsArray; + bool isCollection = ReflectionHelper.IsTypedList(prop.PropertyType) && !prop.PropertyType.IsArray; var cardinalityAttr = ClassMapping.GetAttribute(prop, release); diff --git a/src/Hl7.Fhir.Base/Model/Base.Dictionary.cs b/src/Hl7.Fhir.Base/Model/Base.Dictionary.cs new file mode 100644 index 0000000000..50703025f5 --- /dev/null +++ b/src/Hl7.Fhir.Base/Model/Base.Dictionary.cs @@ -0,0 +1,91 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Hl7.Fhir.Model; + +public abstract partial class Base: IReadOnlyDictionary, IDictionary +{ + private object get(string key) => + this.TryGetValue(key, out var value) + ? value + : throw new KeyNotFoundException($"Element '{key}' is not a known FHIR element or has no value."); + + public IReadOnlyDictionary AsReadOnlyDictionary() => this; + public IDictionary AsDictionary() => this; + + #region IReadOnlyDictionary + + IEnumerable IReadOnlyDictionary.Keys => GetElementPairs().Select(kvp => kvp.Key); + IEnumerable IReadOnlyDictionary.Values => GetElementPairs().Select(kvp => kvp.Value); + int IReadOnlyCollection>.Count => GetElementPairs().Count(); + object IReadOnlyDictionary.this[string key] => get(key); + + bool IReadOnlyDictionary.TryGetValue(string key, out object value) => + TryGetValue(key, out value!); + + bool IReadOnlyDictionary.ContainsKey(string key) => TryGetValue(key, out _); + + IEnumerator> IEnumerable>.GetEnumerator() => + GetElementPairs().GetEnumerator(); + + IEnumerator IEnumerable.GetEnumerator() => GetElementPairs().GetEnumerator(); + + #endregion + + #region IDictionary + + void ICollection>.Add(KeyValuePair item) => + AsDictionary().Add(item.Key, item.Value); + + void ICollection>.Clear() + { + // Slow.... + foreach (var kvp in this) + SetValue(kvp.Key, null); + } + + bool ICollection>.Contains(KeyValuePair item) => + TryGetValue(item.Key, out _); // we don't care about the item, we cannot have the same key twice. + + void ICollection>.CopyTo(KeyValuePair[] array, int arrayIndex) + { + foreach (var kvp in this) + array[arrayIndex++] = kvp; + } + + bool ICollection>.Remove(KeyValuePair item) => + AsDictionary().Remove(item.Key); + + int ICollection>.Count => AsReadOnlyDictionary().Count; + bool ICollection>.IsReadOnly => false; + ICollection IDictionary.Values => AsReadOnlyDictionary().Values.ToList(); + ICollection IDictionary.Keys => AsReadOnlyDictionary().Keys.ToList(); + bool IDictionary.TryGetValue(string key, out object value) => TryGetValue(key, out value!); + + object IDictionary.this[string key] + { + get => this.AsReadOnlyDictionary()[key]; + set => SetValue(key, value); + } + + void IDictionary.Add(string key, object value) + { + if (TryGetValue(key, out _)) + throw new ArgumentException($"An element with the key '{key}' already exists in the dictionary."); + + SetValue(key, value); + } + + bool IDictionary.ContainsKey(string key) => TryGetValue(key, out _); + + bool IDictionary.Remove(string key) + { + var existed = TryGetValue(key, out _); + SetValue(key, null); + return existed; + } + + #endregion +} \ No newline at end of file diff --git a/src/Hl7.Fhir.Base/Model/Base.cs b/src/Hl7.Fhir.Base/Model/Base.cs index 8b17c44b88..e699a27235 100644 --- a/src/Hl7.Fhir.Base/Model/Base.cs +++ b/src/Hl7.Fhir.Base/Model/Base.cs @@ -1,90 +1,134 @@ /* Copyright (c) 2011-2012, HL7, Inc All rights reserved. - - Redistribution and use in source and binary forms, with or without modification, + + Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright notice, this + + * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - * Neither the name of HL7 nor the names of its contributors may be used to - endorse or promote products derived from this software without specific + * Neither the name of HL7 nor the names of its contributors may be used to + endorse or promote products derived from this software without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, - INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT - NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, - WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. + IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, + INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - + */ -using Hl7.Fhir.Introspection; +#nullable enable + +using Hl7.Fhir.Model; using Hl7.Fhir.Utility; using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations; +using System.Diagnostics.CodeAnalysis; using System.Linq; -using System.Runtime.Serialization; using System.Threading; +using DataType = System.ComponentModel.DataAnnotations.DataType; + +namespace Hl7.Fhir.Model; -namespace Hl7.Fhir.Model +public abstract partial class Base : IDeepCopyable, IDeepComparable, + IAnnotated, IAnnotatable, IValidatableObject, INotifyPropertyChanged { - public abstract partial class Base : IDeepCopyable, IDeepComparable, - IAnnotated, IAnnotatable, IValidatableObject, INotifyPropertyChanged, IReadOnlyDictionary - { - public virtual IEnumerable Validate(ValidationContext validationContext) => Enumerable.Empty(); + /// + /// FHIR Type Name + /// + public virtual string TypeName => GetType().Name; + + + private Dictionary? _overflow = null; + + /// + /// A dictionary containing all elements that are not explicitly defined in the class. + /// + protected Dictionary Overflow => + LazyInitializer.EnsureInitialized(ref _overflow, () => new Dictionary())!; + + public virtual IEnumerable Validate(ValidationContext validationContext) => []; - #region << Annotations >> - [NonSerialized] - private AnnotationList _annotations = null; + #region << Annotations >> - private AnnotationList annotations => LazyInitializer.EnsureInitialized(ref _annotations, () => new()); + [NonSerialized] private AnnotationList? _annotations = null; - public IEnumerable Annotations(Type type) => annotations.OfType(type); + private AnnotationList annotations => LazyInitializer.EnsureInitialized(ref _annotations, () => [])!; - public void AddAnnotation(object annotation) => annotations.AddAnnotation(annotation); + public IEnumerable Annotations(Type type) => annotations.OfType(type); - public void RemoveAnnotations(Type type) => annotations.RemoveAnnotations(type); - #endregion + public void AddAnnotation(object annotation) => annotations.AddAnnotation(annotation); - #region INotifyPropertyChanged + public void RemoveAnnotations(Type type) => annotations.RemoveAnnotations(type); - public event PropertyChangedEventHandler PropertyChanged; + #endregion - protected virtual void OnPropertyChanged(String property) => - PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(property)); + #region INotifyPropertyChanged - #endregion + public event PropertyChangedEventHandler? PropertyChanged; - public IReadOnlyDictionary AsReadOnlyDictionary() => this; + protected virtual void OnPropertyChanged(string property) => + PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(property)); - #region IReadOnlyDictionary - IEnumerable IReadOnlyDictionary.Keys => GetElementPairs().Select(kvp => kvp.Key); + #endregion - IEnumerable IReadOnlyDictionary.Values => GetElementPairs().Select(kvp => kvp.Value); + protected virtual Base SetValue(string key, object? value) + { + if (value is null) + Overflow.Remove(key); + else + Overflow[key] = value; + + return this; + } - int IReadOnlyCollection>.Count => GetElementPairs().Count(); + protected virtual bool TryGetValue(string key, [NotNullWhen(true)] out object? value) => + Overflow.TryGetValue(key, out value); - object IReadOnlyDictionary.this[string key] => TryGetValue(key, out var value) ? value : throw new KeyNotFoundException(); + protected virtual IEnumerable> GetElementPairs() => Overflow; - bool IReadOnlyDictionary.ContainsKey(string key) => TryGetValue(key, out _); + // TODO bring Children + NamedChildren over as well. +} - IEnumerator> IEnumerable>.GetEnumerator() => GetElementPairs().GetEnumerator(); - IEnumerator IEnumerable.GetEnumerator() => GetElementPairs().GetEnumerator(); +/// +/// A dynamic data type that can hold any element. +/// +public class DynamicDataType : DataType +{ + public void Add(string arg1, object arg2) => this.SetValue(arg1, arg2); - bool IReadOnlyDictionary.TryGetValue(string key, out object value) => TryGetValue(key, out value); - #endregion + public object this[string key] + { + get => this.AsReadOnlyDictionary()[key]; + set => SetValue(key, value); + } +} + + +/// +/// A dynamic resource that can hold any element. +/// +public class DynamicResource : Resource +{ + public void Add(string arg1, object arg2) => this.SetValue(arg1, arg2); + + public object this[string key] + { + get => this.AsReadOnlyDictionary()[key]; + set => SetValue(key, value); } } \ No newline at end of file diff --git a/src/Hl7.Fhir.Base/Model/Generated/Attachment.cs b/src/Hl7.Fhir.Base/Model/Generated/Attachment.cs index f36e5236b9..a40a2431ff 100644 --- a/src/Hl7.Fhir.Base/Model/Generated/Attachment.cs +++ b/src/Hl7.Fhir.Base/Model/Generated/Attachment.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Collections.Generic; @@ -638,6 +638,55 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "contentType": + ContentTypeElement = (Hl7.Fhir.Model.Code)value; + return this; + case "language": + LanguageElement = (Hl7.Fhir.Model.Code)value; + return this; + case "data": + DataElement = (Hl7.Fhir.Model.Base64Binary)value; + return this; + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUrl)value; + return this; + case "size": + SizeElement = (Hl7.Fhir.Model.Integer64)value; + return this; + case "hash": + HashElement = (Hl7.Fhir.Model.Base64Binary)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "creation": + CreationElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "height": + HeightElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "width": + WidthElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "frames": + FramesElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "duration": + DurationElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "pages": + PagesElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.Base/Model/Generated/BackboneElement.cs b/src/Hl7.Fhir.Base/Model/Generated/BackboneElement.cs index 88f89459af..aa72143c00 100644 --- a/src/Hl7.Fhir.Base/Model/Generated/BackboneElement.cs +++ b/src/Hl7.Fhir.Base/Model/Generated/BackboneElement.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Collections.Generic; @@ -54,11 +54,6 @@ namespace Hl7.Fhir.Model [FhirType("BackboneElement","http://hl7.org/fhir/StructureDefinition/BackboneElement")] public abstract partial class BackboneElement : Hl7.Fhir.Model.Element, Hl7.Fhir.Model.IModifierExtendable { - /// - /// FHIR Type Name - /// - public override string TypeName { get { return "BackboneElement"; } } - /// /// Extensions that cannot be ignored even if unrecognized /// @@ -143,6 +138,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "modifierExtension": + ModifierExtension = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.Base/Model/Generated/BackboneType.cs b/src/Hl7.Fhir.Base/Model/Generated/BackboneType.cs index 9f96389e25..a174b8829f 100644 --- a/src/Hl7.Fhir.Base/Model/Generated/BackboneType.cs +++ b/src/Hl7.Fhir.Base/Model/Generated/BackboneType.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Collections.Generic; @@ -54,11 +54,6 @@ namespace Hl7.Fhir.Model [FhirType("BackboneType","http://hl7.org/fhir/StructureDefinition/BackboneType")] public abstract partial class BackboneType : Hl7.Fhir.Model.DataType, Hl7.Fhir.Model.IModifierExtendable { - /// - /// FHIR Type Name - /// - public override string TypeName { get { return "BackboneType"; } } - /// /// Extensions that cannot be ignored even if unrecognized /// @@ -143,6 +138,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "modifierExtension": + ModifierExtension = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.Base/Model/Generated/Base.cs b/src/Hl7.Fhir.Base/Model/Generated/Base.cs index 6e15e5f2d9..a90f8d4040 100644 --- a/src/Hl7.Fhir.Base/Model/Generated/Base.cs +++ b/src/Hl7.Fhir.Base/Model/Generated/Base.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Collections.Generic; @@ -54,11 +54,6 @@ namespace Hl7.Fhir.Model [FhirType("Base","http://hl7.org/fhir/StructureDefinition/Base")] public abstract partial class Base { - /// - /// FHIR Type Name - /// - public virtual string TypeName { get { return "Base"; } } - public virtual IDeepCopyable CopyTo(IDeepCopyable other) { var dest = other as Base; @@ -103,14 +98,6 @@ public virtual IDeepCopyable DeepCopy() => [IgnoreDataMember] public virtual IEnumerable NamedChildren => Enumerable.Empty(); - protected virtual bool TryGetValue(string key, out object value) - { - value = default; - return false; - } - - protected virtual IEnumerable> GetElementPairs() => Enumerable.Empty>(); - } } diff --git a/src/Hl7.Fhir.Base/Model/Generated/Base64Binary.cs b/src/Hl7.Fhir.Base/Model/Generated/Base64Binary.cs index 31c4627bb0..c063064049 100644 --- a/src/Hl7.Fhir.Base/Model/Generated/Base64Binary.cs +++ b/src/Hl7.Fhir.Base/Model/Generated/Base64Binary.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Runtime.Serialization; diff --git a/src/Hl7.Fhir.Base/Model/Generated/Binary.cs b/src/Hl7.Fhir.Base/Model/Generated/Binary.cs index 4aa269b937..6a1859a1a6 100644 --- a/src/Hl7.Fhir.Base/Model/Generated/Binary.cs +++ b/src/Hl7.Fhir.Base/Model/Generated/Binary.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Collections.Generic; @@ -273,6 +273,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "contentType": + ContentTypeElement = (Hl7.Fhir.Model.Code)value; + return this; + case "securityContext": + SecurityContext = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "content": + ContentElement = (Hl7.Fhir.Model.Base64Binary)value; + return this; + case "data": + DataElement = (Hl7.Fhir.Model.Base64Binary)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.Base/Model/Generated/Bundle.cs b/src/Hl7.Fhir.Base/Model/Generated/Bundle.cs index 13c38fc0b2..3eecfed903 100644 --- a/src/Hl7.Fhir.Base/Model/Generated/Bundle.cs +++ b/src/Hl7.Fhir.Base/Model/Generated/Bundle.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Collections.Generic; @@ -1102,6 +1102,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "relation": + RelationElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1342,6 +1358,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "link": + Link = (List)value; + return this; + case "fullUrl": + FullUrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "resource": + Resource = (Hl7.Fhir.Model.Resource)value; + return this; + case "search": + Search = (Hl7.Fhir.Model.Bundle.SearchComponent)value; + return this; + case "request": + Request = (Hl7.Fhir.Model.Bundle.RequestComponent)value; + return this; + case "response": + Response = (Hl7.Fhir.Model.Bundle.ResponseComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1519,6 +1563,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "mode": + ModeElement = (Code)value; + return this; + case "score": + ScoreElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1850,6 +1910,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "method": + MethodElement = (Code)value; + return this; + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "ifNoneMatch": + IfNoneMatchElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "ifModifiedSince": + IfModifiedSinceElement = (Hl7.Fhir.Model.Instant)value; + return this; + case "ifMatch": + IfMatchElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "ifNoneExist": + IfNoneExistElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2127,6 +2215,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "status": + StatusElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "location": + LocationElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "etag": + EtagElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "lastModified": + LastModifiedElement = (Hl7.Fhir.Model.Instant)value; + return this; + case "outcome": + Outcome = (Hl7.Fhir.Model.Resource)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2437,6 +2550,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "type": + TypeElement = (Code)value; + return this; + case "timestamp": + TimestampElement = (Hl7.Fhir.Model.Instant)value; + return this; + case "total": + TotalElement = (Hl7.Fhir.Model.UnsignedInt)value; + return this; + case "link": + Link = (List)value; + return this; + case "entry": + Entry = (List)value; + return this; + case "signature": + Signature = (Hl7.Fhir.Model.Signature)value; + return this; + case "issues": + Issues = (Hl7.Fhir.Model.Resource)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.Base/Model/Generated/Canonical.cs b/src/Hl7.Fhir.Base/Model/Generated/Canonical.cs index efde48b858..87930bf419 100644 --- a/src/Hl7.Fhir.Base/Model/Generated/Canonical.cs +++ b/src/Hl7.Fhir.Base/Model/Generated/Canonical.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Runtime.Serialization; diff --git a/src/Hl7.Fhir.Base/Model/Generated/Code.cs b/src/Hl7.Fhir.Base/Model/Generated/Code.cs index f3c9585f6d..dcf7dc898e 100644 --- a/src/Hl7.Fhir.Base/Model/Generated/Code.cs +++ b/src/Hl7.Fhir.Base/Model/Generated/Code.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Runtime.Serialization; diff --git a/src/Hl7.Fhir.Base/Model/Generated/CodeableConcept.cs b/src/Hl7.Fhir.Base/Model/Generated/CodeableConcept.cs index 7a10ee91e7..9825ebe1cc 100644 --- a/src/Hl7.Fhir.Base/Model/Generated/CodeableConcept.cs +++ b/src/Hl7.Fhir.Base/Model/Generated/CodeableConcept.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Collections.Generic; @@ -188,6 +188,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "coding": + Coding = (List)value; + return this; + case "text": + TextElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.Base/Model/Generated/CodeableReference.cs b/src/Hl7.Fhir.Base/Model/Generated/CodeableReference.cs index 694c9ae28f..433875d3d2 100644 --- a/src/Hl7.Fhir.Base/Model/Generated/CodeableReference.cs +++ b/src/Hl7.Fhir.Base/Model/Generated/CodeableReference.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Collections.Generic; @@ -168,6 +168,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "concept": + Concept = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "reference": + Reference = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.Base/Model/Generated/Coding.cs b/src/Hl7.Fhir.Base/Model/Generated/Coding.cs index 9b76176291..9764a76469 100644 --- a/src/Hl7.Fhir.Base/Model/Generated/Coding.cs +++ b/src/Hl7.Fhir.Base/Model/Generated/Coding.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Collections.Generic; @@ -321,6 +321,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "system": + SystemElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "code": + CodeElement = (Hl7.Fhir.Model.Code)value; + return this; + case "display": + DisplayElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "userSelected": + UserSelectedElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.Base/Model/Generated/ContactDetail.cs b/src/Hl7.Fhir.Base/Model/Generated/ContactDetail.cs index e706a76688..9a7fefd46f 100644 --- a/src/Hl7.Fhir.Base/Model/Generated/ContactDetail.cs +++ b/src/Hl7.Fhir.Base/Model/Generated/ContactDetail.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Collections.Generic; @@ -187,6 +187,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "telecom": + Telecom = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.Base/Model/Generated/ContactPoint.cs b/src/Hl7.Fhir.Base/Model/Generated/ContactPoint.cs index bbe5ecc505..584e785012 100644 --- a/src/Hl7.Fhir.Base/Model/Generated/ContactPoint.cs +++ b/src/Hl7.Fhir.Base/Model/Generated/ContactPoint.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Collections.Generic; @@ -399,6 +399,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "system": + SystemElement = (Code)value; + return this; + case "value": + ValueElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "use": + UseElement = (Code)value; + return this; + case "rank": + RankElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.Base/Model/Generated/DataType.cs b/src/Hl7.Fhir.Base/Model/Generated/DataType.cs index 455d463204..dc8b590c0c 100644 --- a/src/Hl7.Fhir.Base/Model/Generated/DataType.cs +++ b/src/Hl7.Fhir.Base/Model/Generated/DataType.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Collections.Generic; @@ -54,11 +54,6 @@ namespace Hl7.Fhir.Model [FhirType("DataType","http://hl7.org/fhir/StructureDefinition/DataType")] public abstract partial class DataType : Hl7.Fhir.Model.Element { - /// - /// FHIR Type Name - /// - public override string TypeName { get { return "DataType"; } } - public override IDeepCopyable CopyTo(IDeepCopyable other) { var dest = other as DataType; diff --git a/src/Hl7.Fhir.Base/Model/Generated/Date.cs b/src/Hl7.Fhir.Base/Model/Generated/Date.cs index 951ef58d5d..08a8fecb73 100644 --- a/src/Hl7.Fhir.Base/Model/Generated/Date.cs +++ b/src/Hl7.Fhir.Base/Model/Generated/Date.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Runtime.Serialization; diff --git a/src/Hl7.Fhir.Base/Model/Generated/DomainResource.cs b/src/Hl7.Fhir.Base/Model/Generated/DomainResource.cs index 64c27ddf8c..cab8ebf3d5 100644 --- a/src/Hl7.Fhir.Base/Model/Generated/DomainResource.cs +++ b/src/Hl7.Fhir.Base/Model/Generated/DomainResource.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Collections.Generic; @@ -54,11 +54,6 @@ namespace Hl7.Fhir.Model [FhirType("DomainResource","http://hl7.org/fhir/StructureDefinition/DomainResource", IsResource=true)] public abstract partial class DomainResource : Hl7.Fhir.Model.Resource, Hl7.Fhir.Model.IModifierExtendable { - /// - /// FHIR Type Name - /// - public override string TypeName { get { return "DomainResource"; } } - /// /// Text summary of the resource, for human interpretation /// @@ -210,6 +205,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "text": + Text = (Hl7.Fhir.Model.Narrative)value; + return this; + case "contained": + Contained = (List)value; + return this; + case "extension": + Extension = (List)value; + return this; + case "modifierExtension": + ModifierExtension = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.Base/Model/Generated/Element.cs b/src/Hl7.Fhir.Base/Model/Generated/Element.cs index 3c4a20c051..0fcbbe6c00 100644 --- a/src/Hl7.Fhir.Base/Model/Generated/Element.cs +++ b/src/Hl7.Fhir.Base/Model/Generated/Element.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Collections.Generic; @@ -54,11 +54,6 @@ namespace Hl7.Fhir.Model [FhirType("Element","http://hl7.org/fhir/StructureDefinition/Element")] public abstract partial class Element : Hl7.Fhir.Model.Base { - /// - /// FHIR Type Name - /// - public override string TypeName { get { return "Element"; } } - /// /// Unique id for inter-element referencing /// @@ -165,6 +160,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "id": + ElementId = (string)value; + return this; + case "extension": + Extension = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.Base/Model/Generated/Extension.cs b/src/Hl7.Fhir.Base/Model/Generated/Extension.cs index 1db72f29e7..24a52096a4 100644 --- a/src/Hl7.Fhir.Base/Model/Generated/Extension.cs +++ b/src/Hl7.Fhir.Base/Model/Generated/Extension.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Collections.Generic; @@ -171,6 +171,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + Url = (string)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.Base/Model/Generated/FhirBoolean.cs b/src/Hl7.Fhir.Base/Model/Generated/FhirBoolean.cs index ce6d2cf0f3..ff9819cb71 100644 --- a/src/Hl7.Fhir.Base/Model/Generated/FhirBoolean.cs +++ b/src/Hl7.Fhir.Base/Model/Generated/FhirBoolean.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Runtime.Serialization; diff --git a/src/Hl7.Fhir.Base/Model/Generated/FhirDateTime.cs b/src/Hl7.Fhir.Base/Model/Generated/FhirDateTime.cs index 4387c74d69..1ba1041d5a 100644 --- a/src/Hl7.Fhir.Base/Model/Generated/FhirDateTime.cs +++ b/src/Hl7.Fhir.Base/Model/Generated/FhirDateTime.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Runtime.Serialization; diff --git a/src/Hl7.Fhir.Base/Model/Generated/FhirDecimal.cs b/src/Hl7.Fhir.Base/Model/Generated/FhirDecimal.cs index 748793813c..26a030c60f 100644 --- a/src/Hl7.Fhir.Base/Model/Generated/FhirDecimal.cs +++ b/src/Hl7.Fhir.Base/Model/Generated/FhirDecimal.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Runtime.Serialization; diff --git a/src/Hl7.Fhir.Base/Model/Generated/FhirString.cs b/src/Hl7.Fhir.Base/Model/Generated/FhirString.cs index 10285bf398..97314770a4 100644 --- a/src/Hl7.Fhir.Base/Model/Generated/FhirString.cs +++ b/src/Hl7.Fhir.Base/Model/Generated/FhirString.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Runtime.Serialization; diff --git a/src/Hl7.Fhir.Base/Model/Generated/FhirUri.cs b/src/Hl7.Fhir.Base/Model/Generated/FhirUri.cs index 005c2ca2ef..5582ada55a 100644 --- a/src/Hl7.Fhir.Base/Model/Generated/FhirUri.cs +++ b/src/Hl7.Fhir.Base/Model/Generated/FhirUri.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Runtime.Serialization; diff --git a/src/Hl7.Fhir.Base/Model/Generated/FhirUrl.cs b/src/Hl7.Fhir.Base/Model/Generated/FhirUrl.cs index ffc13db6c9..7f898322ae 100644 --- a/src/Hl7.Fhir.Base/Model/Generated/FhirUrl.cs +++ b/src/Hl7.Fhir.Base/Model/Generated/FhirUrl.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Runtime.Serialization; diff --git a/src/Hl7.Fhir.Base/Model/Generated/Id.cs b/src/Hl7.Fhir.Base/Model/Generated/Id.cs index 747bc32350..23ef65aaed 100644 --- a/src/Hl7.Fhir.Base/Model/Generated/Id.cs +++ b/src/Hl7.Fhir.Base/Model/Generated/Id.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Runtime.Serialization; diff --git a/src/Hl7.Fhir.Base/Model/Generated/Identifier.cs b/src/Hl7.Fhir.Base/Model/Generated/Identifier.cs index 083ce2c982..9badd7daf7 100644 --- a/src/Hl7.Fhir.Base/Model/Generated/Identifier.cs +++ b/src/Hl7.Fhir.Base/Model/Generated/Identifier.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Collections.Generic; @@ -352,6 +352,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "use": + UseElement = (Code)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "system": + SystemElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "value": + ValueElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "assigner": + Assigner = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.Base/Model/Generated/Instant.cs b/src/Hl7.Fhir.Base/Model/Generated/Instant.cs index 306ca99e33..503acf7736 100644 --- a/src/Hl7.Fhir.Base/Model/Generated/Instant.cs +++ b/src/Hl7.Fhir.Base/Model/Generated/Instant.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Runtime.Serialization; diff --git a/src/Hl7.Fhir.Base/Model/Generated/Integer.cs b/src/Hl7.Fhir.Base/Model/Generated/Integer.cs index 63d8cf0348..e734e5a402 100644 --- a/src/Hl7.Fhir.Base/Model/Generated/Integer.cs +++ b/src/Hl7.Fhir.Base/Model/Generated/Integer.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Runtime.Serialization; diff --git a/src/Hl7.Fhir.Base/Model/Generated/Integer64.cs b/src/Hl7.Fhir.Base/Model/Generated/Integer64.cs index 9bc4e6a181..f8bb083f3a 100644 --- a/src/Hl7.Fhir.Base/Model/Generated/Integer64.cs +++ b/src/Hl7.Fhir.Base/Model/Generated/Integer64.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Runtime.Serialization; diff --git a/src/Hl7.Fhir.Base/Model/Generated/Markdown.cs b/src/Hl7.Fhir.Base/Model/Generated/Markdown.cs index 02fd85459e..5fc6061a64 100644 --- a/src/Hl7.Fhir.Base/Model/Generated/Markdown.cs +++ b/src/Hl7.Fhir.Base/Model/Generated/Markdown.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Runtime.Serialization; diff --git a/src/Hl7.Fhir.Base/Model/Generated/Meta.cs b/src/Hl7.Fhir.Base/Model/Generated/Meta.cs index 76e3b8f3d2..b45fb8753e 100644 --- a/src/Hl7.Fhir.Base/Model/Generated/Meta.cs +++ b/src/Hl7.Fhir.Base/Model/Generated/Meta.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Collections.Generic; @@ -330,6 +330,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "versionId": + VersionIdElement = (Hl7.Fhir.Model.Id)value; + return this; + case "lastUpdated": + LastUpdatedElement = (Hl7.Fhir.Model.Instant)value; + return this; + case "source": + SourceElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "profile": + ProfileElement = (List)value; + return this; + case "security": + Security = (List)value; + return this; + case "tag": + Tag = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.Base/Model/Generated/Narrative.cs b/src/Hl7.Fhir.Base/Model/Generated/Narrative.cs index c83d092c07..d42405c0e5 100644 --- a/src/Hl7.Fhir.Base/Model/Generated/Narrative.cs +++ b/src/Hl7.Fhir.Base/Model/Generated/Narrative.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Collections.Generic; @@ -242,6 +242,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "status": + StatusElement = (Code)value; + return this; + case "div": + DivElement = (Hl7.Fhir.Model.XHtml)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.Base/Model/Generated/Oid.cs b/src/Hl7.Fhir.Base/Model/Generated/Oid.cs index 5ac1949868..89833cd9ba 100644 --- a/src/Hl7.Fhir.Base/Model/Generated/Oid.cs +++ b/src/Hl7.Fhir.Base/Model/Generated/Oid.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Runtime.Serialization; diff --git a/src/Hl7.Fhir.Base/Model/Generated/OperationOutcome.cs b/src/Hl7.Fhir.Base/Model/Generated/OperationOutcome.cs index 1cd49e7fe2..0f773dcbad 100644 --- a/src/Hl7.Fhir.Base/Model/Generated/OperationOutcome.cs +++ b/src/Hl7.Fhir.Base/Model/Generated/OperationOutcome.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Collections.Generic; @@ -618,6 +618,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "severity": + SeverityElement = (Code)value; + return this; + case "code": + CodeElement = (Code)value; + return this; + case "details": + Details = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "diagnostics": + DiagnosticsElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "location": + LocationElement = (List)value; + return this; + case "expression": + ExpressionElement = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -720,6 +748,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "issue": + Issue = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.Base/Model/Generated/Parameters.cs b/src/Hl7.Fhir.Base/Model/Generated/Parameters.cs index 6d3b0a4958..bc9f010e53 100644 --- a/src/Hl7.Fhir.Base/Model/Generated/Parameters.cs +++ b/src/Hl7.Fhir.Base/Model/Generated/Parameters.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Collections.Generic; @@ -250,6 +250,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + case "resource": + Resource = (Hl7.Fhir.Model.Resource)value; + return this; + case "part": + Part = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -350,6 +372,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "parameter": + Parameter = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.Base/Model/Generated/Period.cs b/src/Hl7.Fhir.Base/Model/Generated/Period.cs index d26307d063..32425c64cb 100644 --- a/src/Hl7.Fhir.Base/Model/Generated/Period.cs +++ b/src/Hl7.Fhir.Base/Model/Generated/Period.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Collections.Generic; @@ -206,6 +206,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "start": + StartElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "end": + EndElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.Base/Model/Generated/PositiveInt.cs b/src/Hl7.Fhir.Base/Model/Generated/PositiveInt.cs index 650e043fd3..2a8cb76e31 100644 --- a/src/Hl7.Fhir.Base/Model/Generated/PositiveInt.cs +++ b/src/Hl7.Fhir.Base/Model/Generated/PositiveInt.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Runtime.Serialization; diff --git a/src/Hl7.Fhir.Base/Model/Generated/PrimitiveType.cs b/src/Hl7.Fhir.Base/Model/Generated/PrimitiveType.cs index 1cf3c9ce81..43f6d721e9 100644 --- a/src/Hl7.Fhir.Base/Model/Generated/PrimitiveType.cs +++ b/src/Hl7.Fhir.Base/Model/Generated/PrimitiveType.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Collections.Generic; @@ -54,11 +54,6 @@ namespace Hl7.Fhir.Model [FhirType("PrimitiveType","http://hl7.org/fhir/StructureDefinition/PrimitiveType")] public abstract partial class PrimitiveType : Hl7.Fhir.Model.DataType { - /// - /// FHIR Type Name - /// - public override string TypeName { get { return "PrimitiveType"; } } - public override IDeepCopyable CopyTo(IDeepCopyable other) { var dest = other as PrimitiveType; diff --git a/src/Hl7.Fhir.Base/Model/Generated/Quantity.cs b/src/Hl7.Fhir.Base/Model/Generated/Quantity.cs index 8e4ed6cc4d..4adf5780a9 100644 --- a/src/Hl7.Fhir.Base/Model/Generated/Quantity.cs +++ b/src/Hl7.Fhir.Base/Model/Generated/Quantity.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Collections.Generic; @@ -364,6 +364,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "value": + ValueElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "comparator": + ComparatorElement = (Code)value; + return this; + case "unit": + UnitElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "system": + SystemElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "code": + CodeElement = (Hl7.Fhir.Model.Code)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.Base/Model/Generated/Range.cs b/src/Hl7.Fhir.Base/Model/Generated/Range.cs index 7a22e193e3..4040a28498 100644 --- a/src/Hl7.Fhir.Base/Model/Generated/Range.cs +++ b/src/Hl7.Fhir.Base/Model/Generated/Range.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Collections.Generic; @@ -169,6 +169,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "low": + Low = (Hl7.Fhir.Model.Quantity)value; + return this; + case "high": + High = (Hl7.Fhir.Model.Quantity)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.Base/Model/Generated/Resource.cs b/src/Hl7.Fhir.Base/Model/Generated/Resource.cs index 2e065ed499..72769aab16 100644 --- a/src/Hl7.Fhir.Base/Model/Generated/Resource.cs +++ b/src/Hl7.Fhir.Base/Model/Generated/Resource.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Collections.Generic; @@ -54,11 +54,6 @@ namespace Hl7.Fhir.Model [FhirType("Resource","http://hl7.org/fhir/StructureDefinition/Resource", IsResource=true)] public abstract partial class Resource : Hl7.Fhir.Model.Base { - /// - /// FHIR Type Name - /// - public override string TypeName { get { return "Resource"; } } - /// /// Logical id of this artifact /// @@ -260,6 +255,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "id": + IdElement = (Hl7.Fhir.Model.Id)value; + return this; + case "meta": + Meta = (Hl7.Fhir.Model.Meta)value; + return this; + case "implicitRules": + ImplicitRulesElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "language": + LanguageElement = (Hl7.Fhir.Model.Code)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.Base/Model/Generated/ResourceReference.cs b/src/Hl7.Fhir.Base/Model/Generated/ResourceReference.cs index 9669c47274..ff20cdf08a 100644 --- a/src/Hl7.Fhir.Base/Model/Generated/ResourceReference.cs +++ b/src/Hl7.Fhir.Base/Model/Generated/ResourceReference.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Collections.Generic; @@ -265,6 +265,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "reference": + ReferenceElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "type": + TypeElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "display": + DisplayElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.Base/Model/Generated/Signature.cs b/src/Hl7.Fhir.Base/Model/Generated/Signature.cs index ebc415fc31..1df5c4dfa8 100644 --- a/src/Hl7.Fhir.Base/Model/Generated/Signature.cs +++ b/src/Hl7.Fhir.Base/Model/Generated/Signature.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Collections.Generic; @@ -448,6 +448,43 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (List)value; + return this; + case "when": + WhenElement = (Hl7.Fhir.Model.Instant)value; + return this; + case "who": + Who = (Hl7.Fhir.Model.DataType)value; + return this; + case "onBehalfOf": + OnBehalfOf = (Hl7.Fhir.Model.DataType)value; + return this; + case "contentType": + ContentTypeElement = (Hl7.Fhir.Model.Code)value; + return this; + case "targetFormat": + TargetFormatElement = (Hl7.Fhir.Model.Code)value; + return this; + case "sigFormat": + SigFormatElement = (Hl7.Fhir.Model.Code)value; + return this; + case "blob": + BlobElement = (Hl7.Fhir.Model.Base64Binary)value; + return this; + case "data": + DataElement = (Hl7.Fhir.Model.Base64Binary)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.Base/Model/Generated/Template-Bindings.cs b/src/Hl7.Fhir.Base/Model/Generated/Template-Bindings.cs index 9ae1a191b2..32f42b298b 100644 --- a/src/Hl7.Fhir.Base/Model/Generated/Template-Bindings.cs +++ b/src/Hl7.Fhir.Base/Model/Generated/Template-Bindings.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using Hl7.Fhir.Utility; diff --git a/src/Hl7.Fhir.Base/Model/Generated/Time.cs b/src/Hl7.Fhir.Base/Model/Generated/Time.cs index b91c733f14..789f2bb764 100644 --- a/src/Hl7.Fhir.Base/Model/Generated/Time.cs +++ b/src/Hl7.Fhir.Base/Model/Generated/Time.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Runtime.Serialization; diff --git a/src/Hl7.Fhir.Base/Model/Generated/UnsignedInt.cs b/src/Hl7.Fhir.Base/Model/Generated/UnsignedInt.cs index 17983b34e1..d9f30914ac 100644 --- a/src/Hl7.Fhir.Base/Model/Generated/UnsignedInt.cs +++ b/src/Hl7.Fhir.Base/Model/Generated/UnsignedInt.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Runtime.Serialization; diff --git a/src/Hl7.Fhir.Base/Model/Generated/UsageContext.cs b/src/Hl7.Fhir.Base/Model/Generated/UsageContext.cs index 66114a4785..0a3dd0fe30 100644 --- a/src/Hl7.Fhir.Base/Model/Generated/UsageContext.cs +++ b/src/Hl7.Fhir.Base/Model/Generated/UsageContext.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Collections.Generic; @@ -175,6 +175,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.Coding)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.Base/Model/Generated/Uuid.cs b/src/Hl7.Fhir.Base/Model/Generated/Uuid.cs index 05907beadd..7bfb3e9c65 100644 --- a/src/Hl7.Fhir.Base/Model/Generated/Uuid.cs +++ b/src/Hl7.Fhir.Base/Model/Generated/Uuid.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Runtime.Serialization; diff --git a/src/Hl7.Fhir.Base/Model/Generated/XHtml.cs b/src/Hl7.Fhir.Base/Model/Generated/XHtml.cs index af5bc2884a..869229ed93 100644 --- a/src/Hl7.Fhir.Base/Model/Generated/XHtml.cs +++ b/src/Hl7.Fhir.Base/Model/Generated/XHtml.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Runtime.Serialization; diff --git a/src/Hl7.Fhir.Base/Model/Generated/_GeneratorLog.cs b/src/Hl7.Fhir.Base/Model/Generated/_GeneratorLog.cs index 1dd8034863..244e04a072 100644 --- a/src/Hl7.Fhir.Base/Model/Generated/_GeneratorLog.cs +++ b/src/Hl7.Fhir.Base/Model/Generated/_GeneratorLog.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 // Deferred generation of Shared Enumeration (will be generated in another subset): ActionCardinalityBehavior (http://hl7.org/fhir/ValueSet/action-cardinality-behavior) // Used in model class (resource): PlanDefinition.action.cardinalityBehavior diff --git a/src/Hl7.Fhir.Base/Model/Parameters.cs b/src/Hl7.Fhir.Base/Model/Parameters.cs index 9ced728c10..db939979ca 100644 --- a/src/Hl7.Fhir.Base/Model/Parameters.cs +++ b/src/Hl7.Fhir.Base/Model/Parameters.cs @@ -145,8 +145,6 @@ public ParameterComponent GetSingle(string name, bool matchPrefix = false) return Get(name, matchPrefix).SingleOrDefault(); } - public ParameterComponent this[string name] => GetSingle(name); - /// /// Returns the Value property of the requested parameter casted to the requested type /// diff --git a/src/Hl7.Fhir.Base/Model/PrimitiveType.cs b/src/Hl7.Fhir.Base/Model/PrimitiveType.cs index 5ba104e979..679336df7c 100644 --- a/src/Hl7.Fhir.Base/Model/PrimitiveType.cs +++ b/src/Hl7.Fhir.Base/Model/PrimitiveType.cs @@ -69,6 +69,17 @@ protected override bool TryGetValue(string key, [NotNullWhen(true)] out object? return base.TryGetValue(key, out value); } + protected override Base SetValue(string key, object? value) + { + switch (key) + { + case "value": + ObjectValue = value; + return this; + default: + return base.SetValue(key, value); + } + } /// protected override IEnumerable> GetElementPairs() { diff --git a/src/Hl7.Fhir.Base/Model/Resource.cs b/src/Hl7.Fhir.Base/Model/Resource.cs index 8a8b9d227a..d25760565d 100644 --- a/src/Hl7.Fhir.Base/Model/Resource.cs +++ b/src/Hl7.Fhir.Base/Model/Resource.cs @@ -65,14 +65,14 @@ private class ResourceBaseData /// /// As a consumer of this API, please do not use this object. /// - public readonly object SyncLock = new object(); + public readonly object SyncLock = new(); public string VersionId { - get => HasVersionId ? Meta.VersionId : null; + get => Meta?.VersionId; set { - if (Meta == null) Meta = new Meta(); + Meta ??= new Meta(); Meta.VersionId = value; } } @@ -80,4 +80,4 @@ public string VersionId public bool HasVersionId => Meta?.VersionId != null; } -} +} \ No newline at end of file diff --git a/src/Hl7.Fhir.Base/Rest/FhirClientOperations.cs b/src/Hl7.Fhir.Base/Rest/FhirClientOperations.cs index f5853d1979..39d85e8aad 100644 --- a/src/Hl7.Fhir.Base/Rest/FhirClientOperations.cs +++ b/src/Hl7.Fhir.Base/Rest/FhirClientOperations.cs @@ -96,7 +96,7 @@ public static ValidateCodeResult FromParameters(Parameters p) return new ValidateCodeResult { - Result = p["result"]?.Value as FhirBoolean, + Result = p.GetSingle("result")?.Value as FhirBoolean, Message = p.Get("message").FirstOrDefault()?.Value as FhirString, Display = p.Get("display").FirstOrDefault()?.Value as FhirString }; diff --git a/src/Hl7.Fhir.Base/Serialization/DefaultModelFactory.cs b/src/Hl7.Fhir.Base/Serialization/DefaultModelFactory.cs index 8d4d6d865b..6db2bd62d6 100644 --- a/src/Hl7.Fhir.Base/Serialization/DefaultModelFactory.cs +++ b/src/Hl7.Fhir.Base/Serialization/DefaultModelFactory.cs @@ -24,7 +24,7 @@ public bool CanCreate(Type type) // Can create any type, as long as a public default constructor is present var canCreate = ReflectionHelper.HasDefaultPublicConstructor(type) || - (ReflectionHelper.IsTypedCollection(type) && !type.IsArray); + (ReflectionHelper.IsTypedList(type) && !type.IsArray); return canCreate; } diff --git a/src/Hl7.Fhir.Base/Utility/ReflectionHelper.cs b/src/Hl7.Fhir.Base/Utility/ReflectionHelper.cs index 4a3f9fe71f..883d750163 100644 --- a/src/Hl7.Fhir.Base/Utility/ReflectionHelper.cs +++ b/src/Hl7.Fhir.Base/Utility/ReflectionHelper.cs @@ -89,11 +89,11 @@ public static Type GetNullableArgument(Type type) => : throw Error.Argument("type", "Type {0} is not a Nullable".FormatWith(type.Name)); /// - /// Returns true if the given type is a .NET2.0+ typed collection. + /// Returns true if the given type is a .NET2.0+ typed list. /// - public static bool IsTypedCollection(Type type) + public static bool IsTypedList(Type type) { - return type.IsArray || ImplementsGenericDefinition(type, typeof(ICollection<>)); + return type.IsArray || ImplementsGenericDefinition(type, typeof(IList<>)); } @@ -227,4 +227,4 @@ public static string GetProductVersion(Assembly a) return cleanedInformationalVersion; } } -} +} \ No newline at end of file diff --git a/src/Hl7.Fhir.Conformance/Model/Generated/CapabilityStatement.cs b/src/Hl7.Fhir.Conformance/Model/Generated/CapabilityStatement.cs index d0248e2c9d..8f172e4b8f 100644 --- a/src/Hl7.Fhir.Conformance/Model/Generated/CapabilityStatement.cs +++ b/src/Hl7.Fhir.Conformance/Model/Generated/CapabilityStatement.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Collections.Generic; @@ -556,6 +556,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "releaseDate": + ReleaseDateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -754,6 +773,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUrl)value; + return this; + case "custodian": + Custodian = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1079,6 +1117,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "mode": + ModeElement = (Code)value; + return this; + case "documentation": + DocumentationElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "security": + Security = (Hl7.Fhir.Model.CapabilityStatement.SecurityComponent)value; + return this; + case "resource": + Resource = (List)value; + return this; + case "interaction": + Interaction = (List)value; + return this; + case "searchParam": + SearchParam = (List)value; + return this; + case "operation": + Operation = (List)value; + return this; + case "compartment": + CompartmentElement = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1279,6 +1351,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "cors": + CorsElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "service": + Service = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2039,6 +2130,70 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Hl7.Fhir.Model.Code)value; + return this; + case "profile": + ProfileElement = (Hl7.Fhir.Model.Canonical)value; + return this; + case "supportedProfile": + SupportedProfileElement = (List)value; + return this; + case "documentation": + DocumentationElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "interaction": + Interaction = (List)value; + return this; + case "versioning": + VersioningElement = (Code)value; + return this; + case "readHistory": + ReadHistoryElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "updateCreate": + UpdateCreateElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "conditionalCreate": + ConditionalCreateElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "conditionalRead": + ConditionalReadElement = (Code)value; + return this; + case "conditionalUpdate": + ConditionalUpdateElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "conditionalPatch": + ConditionalPatchElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "conditionalDelete": + ConditionalDeleteElement = (Code)value; + return this; + case "referencePolicy": + ReferencePolicyElement = (List>)value; + return this; + case "searchInclude": + SearchIncludeElement = (List)value; + return this; + case "searchRevInclude": + SearchRevIncludeElement = (List)value; + return this; + case "searchParam": + SearchParam = (List)value; + return this; + case "operation": + Operation = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2230,6 +2385,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + CodeElement = (Code)value; + return this; + case "documentation": + DocumentationElement = (Hl7.Fhir.Model.Markdown)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2484,6 +2655,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "definition": + DefinitionElement = (Hl7.Fhir.Model.Canonical)value; + return this; + case "type": + TypeElement = (Code)value; + return this; + case "documentation": + DocumentationElement = (Hl7.Fhir.Model.Markdown)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2700,6 +2893,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "definition": + DefinitionElement = (Hl7.Fhir.Model.Canonical)value; + return this; + case "documentation": + DocumentationElement = (Hl7.Fhir.Model.Markdown)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2875,6 +3087,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + CodeElement = (Code)value; + return this; + case "documentation": + DocumentationElement = (Hl7.Fhir.Model.Markdown)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3091,6 +3319,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "endpoint": + Endpoint = (List)value; + return this; + case "reliableCache": + ReliableCacheElement = (Hl7.Fhir.Model.UnsignedInt)value; + return this; + case "documentation": + DocumentationElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "supportedMessage": + SupportedMessage = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3249,6 +3499,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "protocol": + Protocol = (Hl7.Fhir.Model.Coding)value; + return this; + case "address": + AddressElement = (Hl7.Fhir.Model.FhirUrl)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3425,6 +3691,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "mode": + ModeElement = (Code)value; + return this; + case "definition": + DefinitionElement = (Hl7.Fhir.Model.Canonical)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3639,6 +3921,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "mode": + ModeElement = (Code)value; + return this; + case "documentation": + DocumentationElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "profile": + ProfileElement = (Hl7.Fhir.Model.Canonical)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -4737,6 +5038,106 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "versionAlgorithm": + VersionAlgorithm = (Hl7.Fhir.Model.DataType)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "copyrightLabel": + CopyrightLabelElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "kind": + KindElement = (Code)value; + return this; + case "instantiates": + InstantiatesElement = (List)value; + return this; + case "imports": + ImportsElement = (List)value; + return this; + case "software": + Software = (Hl7.Fhir.Model.CapabilityStatement.SoftwareComponent)value; + return this; + case "implementation": + Implementation = (Hl7.Fhir.Model.CapabilityStatement.ImplementationComponent)value; + return this; + case "fhirVersion": + FhirVersionElement = (Code)value; + return this; + case "format": + FormatElement = (List)value; + return this; + case "patchFormat": + PatchFormatElement = (List)value; + return this; + case "acceptLanguage": + AcceptLanguageElement = (List)value; + return this; + case "implementationGuide": + ImplementationGuideElement = (List)value; + return this; + case "rest": + Rest = (List)value; + return this; + case "messaging": + Messaging = (List)value; + return this; + case "document": + Document = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.Conformance/Model/Generated/CodeSystem.cs b/src/Hl7.Fhir.Conformance/Model/Generated/CodeSystem.cs index 0966c64a0a..c2a8bc8c84 100644 --- a/src/Hl7.Fhir.Conformance/Model/Generated/CodeSystem.cs +++ b/src/Hl7.Fhir.Conformance/Model/Generated/CodeSystem.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Collections.Generic; @@ -391,6 +391,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + CodeElement = (Hl7.Fhir.Model.Code)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "operator": + OperatorElement = (List>)value; + return this; + case "value": + ValueElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -647,6 +669,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + CodeElement = (Hl7.Fhir.Model.Code)value; + return this; + case "uri": + UriElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "type": + TypeElement = (Code)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -927,6 +971,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + CodeElement = (Hl7.Fhir.Model.Code)value; + return this; + case "display": + DisplayElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "definition": + DefinitionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "designation": + Designation = (List)value; + return this; + case "property": + Property = (List)value; + return this; + case "concept": + Concept = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1150,6 +1222,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "language": + LanguageElement = (Hl7.Fhir.Model.Code)value; + return this; + case "use": + Use = (Hl7.Fhir.Model.Coding)value; + return this; + case "additionalUse": + AdditionalUse = (List)value; + return this; + case "value": + ValueElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1309,6 +1403,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + CodeElement = (Hl7.Fhir.Model.Code)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2585,6 +2695,127 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "versionAlgorithm": + VersionAlgorithm = (Hl7.Fhir.Model.DataType)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "copyrightLabel": + CopyrightLabelElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "approvalDate": + ApprovalDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "lastReviewDate": + LastReviewDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "effectivePeriod": + EffectivePeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "topic": + Topic = (List)value; + return this; + case "author": + Author = (List)value; + return this; + case "editor": + Editor = (List)value; + return this; + case "reviewer": + Reviewer = (List)value; + return this; + case "endorser": + Endorser = (List)value; + return this; + case "relatedArtifact": + RelatedArtifact = (List)value; + return this; + case "caseSensitive": + CaseSensitiveElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "valueSet": + ValueSetElement = (Hl7.Fhir.Model.Canonical)value; + return this; + case "hierarchyMeaning": + HierarchyMeaningElement = (Code)value; + return this; + case "compositional": + CompositionalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "versionNeeded": + VersionNeededElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "content": + ContentElement = (Code)value; + return this; + case "supplements": + SupplementsElement = (Hl7.Fhir.Model.Canonical)value; + return this; + case "count": + CountElement = (Hl7.Fhir.Model.UnsignedInt)value; + return this; + case "filter": + Filter = (List)value; + return this; + case "property": + Property = (List)value; + return this; + case "concept": + Concept = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.Conformance/Model/Generated/ElementDefinition.cs b/src/Hl7.Fhir.Conformance/Model/Generated/ElementDefinition.cs index 6d0b754ba5..95a4575d1b 100644 --- a/src/Hl7.Fhir.Conformance/Model/Generated/ElementDefinition.cs +++ b/src/Hl7.Fhir.Conformance/Model/Generated/ElementDefinition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Collections.Generic; @@ -527,6 +527,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "discriminator": + Discriminator = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "ordered": + OrderedElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "rules": + RulesElement = (Code)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -705,6 +727,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "path": + PathElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -919,6 +957,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "path": + PathElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "min": + MinElement = (Hl7.Fhir.Model.UnsignedInt)value; + return this; + case "max": + MaxElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1218,6 +1275,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + CodeElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "profile": + ProfileElement = (List)value; + return this; + case "targetProfile": + TargetProfileElement = (List)value; + return this; + case "aggregation": + AggregationElement = (List>)value; + return this; + case "versioning": + VersioningElement = (Code)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1377,6 +1459,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "label": + LabelElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1791,6 +1889,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "key": + KeyElement = (Hl7.Fhir.Model.Id)value; + return this; + case "requirements": + RequirementsElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "severity": + SeverityElement = (Code)value; + return this; + case "suppress": + SuppressElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "human": + HumanElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "expression": + ExpressionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "xpath": + XpathElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "source": + SourceElement = (Hl7.Fhir.Model.Canonical)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2035,6 +2167,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "strength": + StrengthElement = (Code)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "valueSet": + ValueSetElement = (Hl7.Fhir.Model.Canonical)value; + return this; + case "additional": + Additional = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2351,6 +2505,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "purpose": + PurposeElement = (Code)value; + return this; + case "valueSet": + ValueSetElement = (Hl7.Fhir.Model.Canonical)value; + return this; + case "documentation": + DocumentationElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "shortDoco": + ShortDocoElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "usage": + Usage = (List)value; + return this; + case "any": + AnyElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2610,6 +2792,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identity": + IdentityElement = (Hl7.Fhir.Model.Id)value; + return this; + case "language": + LanguageElement = (Hl7.Fhir.Model.Code)value; + return this; + case "map": + MapElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "comment": + CommentElement = (Hl7.Fhir.Model.Markdown)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3875,6 +4079,124 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "path": + PathElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "representation": + RepresentationElement = (List>)value; + return this; + case "sliceName": + SliceNameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "sliceIsConstraining": + SliceIsConstrainingElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "label": + LabelElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "code": + Code = (List)value; + return this; + case "slicing": + Slicing = (Hl7.Fhir.Model.ElementDefinition.SlicingComponent)value; + return this; + case "short": + ShortElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "definition": + DefinitionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "comment": + CommentElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "requirements": + RequirementsElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "alias": + AliasElement = (List)value; + return this; + case "min": + MinElement = (Hl7.Fhir.Model.UnsignedInt)value; + return this; + case "max": + MaxElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "base": + Base = (Hl7.Fhir.Model.ElementDefinition.BaseComponent)value; + return this; + case "contentReference": + ContentReferenceElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "type": + Type = (List)value; + return this; + case "defaultValue": + DefaultValue = (Hl7.Fhir.Model.DataType)value; + return this; + case "meaningWhenMissing": + MeaningWhenMissingElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "orderMeaning": + OrderMeaningElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "fixed": + Fixed = (Hl7.Fhir.Model.DataType)value; + return this; + case "pattern": + Pattern = (Hl7.Fhir.Model.DataType)value; + return this; + case "example": + Example = (List)value; + return this; + case "minValue": + MinValue = (Hl7.Fhir.Model.DataType)value; + return this; + case "maxValue": + MaxValue = (Hl7.Fhir.Model.DataType)value; + return this; + case "maxLength": + MaxLengthElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "condition": + ConditionElement = (List)value; + return this; + case "constraint": + Constraint = (List)value; + return this; + case "mustHaveValue": + MustHaveValueElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "valueAlternatives": + ValueAlternativesElement = (List)value; + return this; + case "mustSupport": + MustSupportElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "isModifier": + IsModifierElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "isModifierReason": + IsModifierReasonElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "isSummary": + IsSummaryElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "binding": + Binding = (Hl7.Fhir.Model.ElementDefinition.ElementDefinitionBindingComponent)value; + return this; + case "mapping": + Mapping = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.Conformance/Model/Generated/RelatedArtifact.cs b/src/Hl7.Fhir.Conformance/Model/Generated/RelatedArtifact.cs index 0a16e523dd..287a243a0a 100644 --- a/src/Hl7.Fhir.Conformance/Model/Generated/RelatedArtifact.cs +++ b/src/Hl7.Fhir.Conformance/Model/Generated/RelatedArtifact.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Collections.Generic; @@ -738,6 +738,49 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "classifier": + Classifier = (List)value; + return this; + case "label": + LabelElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "display": + DisplayElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "citation": + CitationElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUrl)value; + return this; + case "document": + Document = (Hl7.Fhir.Model.Attachment)value; + return this; + case "resource": + ResourceElement = (Hl7.Fhir.Model.Canonical)value; + return this; + case "resourceReference": + ResourceReference = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "publicationStatus": + PublicationStatusElement = (Code)value; + return this; + case "publicationDate": + PublicationDateElement = (Hl7.Fhir.Model.Date)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.Conformance/Model/Generated/StructureDefinition.cs b/src/Hl7.Fhir.Conformance/Model/Generated/StructureDefinition.cs index 40deaba183..6ea94c7722 100644 --- a/src/Hl7.Fhir.Conformance/Model/Generated/StructureDefinition.cs +++ b/src/Hl7.Fhir.Conformance/Model/Generated/StructureDefinition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Collections.Generic; @@ -384,6 +384,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identity": + IdentityElement = (Hl7.Fhir.Model.Id)value; + return this; + case "uri": + UriElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "comment": + CommentElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -561,6 +583,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "expression": + ExpressionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -676,6 +714,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "element": + Element = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -790,6 +841,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "element": + Element = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1845,6 +1909,103 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "versionAlgorithm": + VersionAlgorithm = (Hl7.Fhir.Model.DataType)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "copyrightLabel": + CopyrightLabelElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "keyword": + Keyword = (List)value; + return this; + case "fhirVersion": + FhirVersionElement = (Code)value; + return this; + case "mapping": + Mapping = (List)value; + return this; + case "kind": + KindElement = (Code)value; + return this; + case "abstract": + AbstractElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "context": + Context = (List)value; + return this; + case "contextInvariant": + ContextInvariantElement = (List)value; + return this; + case "type": + TypeElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "baseDefinition": + BaseDefinitionElement = (Hl7.Fhir.Model.Canonical)value; + return this; + case "derivation": + DerivationElement = (Code)value; + return this; + case "snapshot": + Snapshot = (Hl7.Fhir.Model.StructureDefinition.SnapshotComponent)value; + return this; + case "differential": + Differential = (Hl7.Fhir.Model.StructureDefinition.DifferentialComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.Conformance/Model/Generated/Template-Bindings.cs b/src/Hl7.Fhir.Conformance/Model/Generated/Template-Bindings.cs index d434b0e9e6..9c5b44b397 100644 --- a/src/Hl7.Fhir.Conformance/Model/Generated/Template-Bindings.cs +++ b/src/Hl7.Fhir.Conformance/Model/Generated/Template-Bindings.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using Hl7.Fhir.Utility; diff --git a/src/Hl7.Fhir.Conformance/Model/Generated/ValueSet.cs b/src/Hl7.Fhir.Conformance/Model/Generated/ValueSet.cs index f88ea4526c..feafaf4758 100644 --- a/src/Hl7.Fhir.Conformance/Model/Generated/ValueSet.cs +++ b/src/Hl7.Fhir.Conformance/Model/Generated/ValueSet.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 using System; using System.Collections.Generic; @@ -305,6 +305,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "lockedDate": + LockedDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "inactive": + InactiveElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "include": + Include = (List)value; + return this; + case "exclude": + Exclude = (List)value; + return this; + case "property": + PropertyElement = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -602,6 +627,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "system": + SystemElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "concept": + Concept = (List)value; + return this; + case "filter": + Filter = (List)value; + return this; + case "valueSet": + ValueSetElement = (List)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -801,6 +854,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + CodeElement = (Hl7.Fhir.Model.Code)value; + return this; + case "display": + DisplayElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "designation": + Designation = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1021,6 +1093,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "language": + LanguageElement = (Hl7.Fhir.Model.Code)value; + return this; + case "use": + Use = (Hl7.Fhir.Model.Coding)value; + return this; + case "additionalUse": + AdditionalUse = (List)value; + return this; + case "value": + ValueElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1239,6 +1333,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "property": + PropertyElement = (Hl7.Fhir.Model.Code)value; + return this; + case "op": + OpElement = (Code)value; + return this; + case "value": + ValueElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1597,6 +1710,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + IdentifierElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "next": + NextElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "timestamp": + TimestampElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "total": + TotalElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "offset": + OffsetElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "parameter": + Parameter = (List)value; + return this; + case "property": + Property = (List)value; + return this; + case "contains": + Contains = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1760,6 +1907,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1932,6 +2095,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + CodeElement = (Hl7.Fhir.Model.Code)value; + return this; + case "uri": + UriElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2325,6 +2504,43 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "system": + SystemElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "abstract": + AbstractElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "inactive": + InactiveElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "code": + CodeElement = (Hl7.Fhir.Model.Code)value; + return this; + case "display": + DisplayElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "designation": + Designation = (List)value; + return this; + case "property": + Property = (List)value; + return this; + case "contains": + Contains = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2511,6 +2727,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + CodeElement = (Hl7.Fhir.Model.Code)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + case "subProperty": + SubProperty = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2669,6 +2904,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + CodeElement = (Hl7.Fhir.Model.Code)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2877,6 +3128,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "inclusionCriteria": + InclusionCriteriaElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "focus": + FocusElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "exclusionCriteria": + ExclusionCriteriaElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3873,6 +4143,106 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "versionAlgorithm": + VersionAlgorithm = (Hl7.Fhir.Model.DataType)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "immutable": + ImmutableElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "copyrightLabel": + CopyrightLabelElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "approvalDate": + ApprovalDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "lastReviewDate": + LastReviewDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "effectivePeriod": + EffectivePeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "topic": + Topic = (List)value; + return this; + case "author": + Author = (List)value; + return this; + case "editor": + Editor = (List)value; + return this; + case "reviewer": + Reviewer = (List)value; + return this; + case "endorser": + Endorser = (List)value; + return this; + case "relatedArtifact": + RelatedArtifact = (List)value; + return this; + case "compose": + Compose = (Hl7.Fhir.Model.ValueSet.ComposeComponent)value; + return this; + case "expansion": + Expansion = (Hl7.Fhir.Model.ValueSet.ExpansionComponent)value; + return this; + case "scope": + Scope = (Hl7.Fhir.Model.ValueSet.ScopeComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.Conformance/Model/Generated/_GeneratorLog.cs b/src/Hl7.Fhir.Conformance/Model/Generated/_GeneratorLog.cs index 067747b97f..e388d3b036 100644 --- a/src/Hl7.Fhir.Conformance/Model/Generated/_GeneratorLog.cs +++ b/src/Hl7.Fhir.Conformance/Model/Generated/_GeneratorLog.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r5.expansions#5.0.0, hl7.fhir.r5.core#5.0.0 +// Contents of: hl7.fhir.r5.expansions@5.0.0, hl7.fhir.r5.core@5.0.0 // Deferred generation of Shared Enumeration (will be generated in another subset): ActionCardinalityBehavior (http://hl7.org/fhir/ValueSet/action-cardinality-behavior) // Used in model class (resource): PlanDefinition.action.cardinalityBehavior diff --git a/src/Hl7.Fhir.R4/CompatibilitySuppressions.xml b/src/Hl7.Fhir.R4/CompatibilitySuppressions.xml new file mode 100644 index 0000000000..9ba9328feb --- /dev/null +++ b/src/Hl7.Fhir.R4/CompatibilitySuppressions.xml @@ -0,0 +1,214 @@ + + + + + CP0002 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.Question + lib/net8.0/Hl7.Fhir.R4.dll + lib/net8.0/Hl7.Fhir.R4.dll + true + + + CP0002 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.Question + lib/netstandard2.0/Hl7.Fhir.R4.dll + lib/netstandard2.0/Hl7.Fhir.R4.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.Attachment + lib/net8.0/Hl7.Fhir.R4.dll + lib/net8.0/Hl7.Fhir.R4.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.Boolean + lib/net8.0/Hl7.Fhir.R4.dll + lib/net8.0/Hl7.Fhir.R4.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.Choice + lib/net8.0/Hl7.Fhir.R4.dll + lib/net8.0/Hl7.Fhir.R4.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.Date + lib/net8.0/Hl7.Fhir.R4.dll + lib/net8.0/Hl7.Fhir.R4.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.DateTime + lib/net8.0/Hl7.Fhir.R4.dll + lib/net8.0/Hl7.Fhir.R4.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.Decimal + lib/net8.0/Hl7.Fhir.R4.dll + lib/net8.0/Hl7.Fhir.R4.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.Integer + lib/net8.0/Hl7.Fhir.R4.dll + lib/net8.0/Hl7.Fhir.R4.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.OpenChoice + lib/net8.0/Hl7.Fhir.R4.dll + lib/net8.0/Hl7.Fhir.R4.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.Quantity + lib/net8.0/Hl7.Fhir.R4.dll + lib/net8.0/Hl7.Fhir.R4.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.Reference + lib/net8.0/Hl7.Fhir.R4.dll + lib/net8.0/Hl7.Fhir.R4.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.String + lib/net8.0/Hl7.Fhir.R4.dll + lib/net8.0/Hl7.Fhir.R4.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.Text + lib/net8.0/Hl7.Fhir.R4.dll + lib/net8.0/Hl7.Fhir.R4.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.Time + lib/net8.0/Hl7.Fhir.R4.dll + lib/net8.0/Hl7.Fhir.R4.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.Url + lib/net8.0/Hl7.Fhir.R4.dll + lib/net8.0/Hl7.Fhir.R4.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.Attachment + lib/netstandard2.0/Hl7.Fhir.R4.dll + lib/netstandard2.0/Hl7.Fhir.R4.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.Boolean + lib/netstandard2.0/Hl7.Fhir.R4.dll + lib/netstandard2.0/Hl7.Fhir.R4.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.Choice + lib/netstandard2.0/Hl7.Fhir.R4.dll + lib/netstandard2.0/Hl7.Fhir.R4.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.Date + lib/netstandard2.0/Hl7.Fhir.R4.dll + lib/netstandard2.0/Hl7.Fhir.R4.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.DateTime + lib/netstandard2.0/Hl7.Fhir.R4.dll + lib/netstandard2.0/Hl7.Fhir.R4.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.Decimal + lib/netstandard2.0/Hl7.Fhir.R4.dll + lib/netstandard2.0/Hl7.Fhir.R4.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.Integer + lib/netstandard2.0/Hl7.Fhir.R4.dll + lib/netstandard2.0/Hl7.Fhir.R4.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.OpenChoice + lib/netstandard2.0/Hl7.Fhir.R4.dll + lib/netstandard2.0/Hl7.Fhir.R4.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.Quantity + lib/netstandard2.0/Hl7.Fhir.R4.dll + lib/netstandard2.0/Hl7.Fhir.R4.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.Reference + lib/netstandard2.0/Hl7.Fhir.R4.dll + lib/netstandard2.0/Hl7.Fhir.R4.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.String + lib/netstandard2.0/Hl7.Fhir.R4.dll + lib/netstandard2.0/Hl7.Fhir.R4.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.Text + lib/netstandard2.0/Hl7.Fhir.R4.dll + lib/netstandard2.0/Hl7.Fhir.R4.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.Time + lib/netstandard2.0/Hl7.Fhir.R4.dll + lib/netstandard2.0/Hl7.Fhir.R4.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.Url + lib/netstandard2.0/Hl7.Fhir.R4.dll + lib/netstandard2.0/Hl7.Fhir.R4.dll + true + + \ No newline at end of file diff --git a/src/Hl7.Fhir.R4/Model/Generated/Account.cs b/src/Hl7.Fhir.R4/Model/Generated/Account.cs index 37551a8d88..c9e263f1a3 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/Account.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/Account.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -248,6 +248,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "coverage": + Coverage = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "priority": + PriorityElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -425,6 +441,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "party": + Party = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "onHold": + OnHoldElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -806,6 +841,49 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "subject": + Subject = (List)value; + return this; + case "servicePeriod": + ServicePeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "coverage": + Coverage = (List)value; + return this; + case "owner": + Owner = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "guarantor": + Guarantor = (List)value; + return this; + case "partOf": + PartOf = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/ActivityDefinition.cs b/src/Hl7.Fhir.R4/Model/Generated/ActivityDefinition.cs index 0bd0db6038..3b54c5954c 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/ActivityDefinition.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/ActivityDefinition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -307,6 +307,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "role": + Role = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -463,6 +479,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "path": + PathElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "expression": + Expression = (Hl7.Fhir.Model.Expression)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1955,6 +1987,154 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "subtitle": + SubtitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.DataType)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "usage": + UsageElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "approvalDate": + ApprovalDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "lastReviewDate": + LastReviewDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "effectivePeriod": + EffectivePeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "topic": + Topic = (List)value; + return this; + case "author": + Author = (List)value; + return this; + case "editor": + Editor = (List)value; + return this; + case "reviewer": + Reviewer = (List)value; + return this; + case "endorser": + Endorser = (List)value; + return this; + case "relatedArtifact": + RelatedArtifact = (List)value; + return this; + case "library": + LibraryElement = (List)value; + return this; + case "kind": + KindElement = (Code)value; + return this; + case "profile": + ProfileElement = (Hl7.Fhir.Model.Canonical)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "intent": + IntentElement = (Code)value; + return this; + case "priority": + PriorityElement = (Code)value; + return this; + case "doNotPerform": + DoNotPerformElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "timing": + Timing = (Hl7.Fhir.Model.DataType)value; + return this; + case "location": + Location = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "participant": + Participant = (List)value; + return this; + case "product": + Product = (Hl7.Fhir.Model.DataType)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "dosage": + Dosage = (List)value; + return this; + case "bodySite": + BodySite = (List)value; + return this; + case "specimenRequirement": + SpecimenRequirement = (List)value; + return this; + case "observationRequirement": + ObservationRequirement = (List)value; + return this; + case "observationResultRequirement": + ObservationResultRequirement = (List)value; + return this; + case "transform": + TransformElement = (Hl7.Fhir.Model.Canonical)value; + return this; + case "dynamicValue": + DynamicValue = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/Address.cs b/src/Hl7.Fhir.R4/Model/Generated/Address.cs index db9f5d79c5..049d372ae4 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/Address.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/Address.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -572,6 +572,46 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "use": + UseElement = (Code)value; + return this; + case "type": + TypeElement = (Code)value; + return this; + case "text": + TextElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "line": + LineElement = (List)value; + return this; + case "city": + CityElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "district": + DistrictElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "state": + StateElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "postalCode": + PostalCodeElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "country": + CountryElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/AdverseEvent.cs b/src/Hl7.Fhir.R4/Model/Generated/AdverseEvent.cs index 0b34467e8d..6ad04087fb 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/AdverseEvent.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/AdverseEvent.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -285,6 +285,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "instance": + Instance = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "causality": + Causality = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -481,6 +497,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "assessment": + Assessment = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "productRelatedness": + ProductRelatednessElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "author": + Author = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "method": + Method = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1090,6 +1128,76 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "actuality": + ActualityElement = (Code)value; + return this; + case "category": + Category = (List)value; + return this; + case "event": + Event = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "detected": + DetectedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "recordedDate": + RecordedDateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "resultingCondition": + ResultingCondition = (List)value; + return this; + case "location": + Location = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "seriousness": + Seriousness = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "severity": + Severity = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "outcome": + Outcome = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "recorder": + Recorder = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "contributor": + Contributor = (List)value; + return this; + case "suspectEntity": + SuspectEntity = (List)value; + return this; + case "subjectMedicalHistory": + SubjectMedicalHistory = (List)value; + return this; + case "referenceDocument": + ReferenceDocument = (List)value; + return this; + case "study": + Study = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/Age.cs b/src/Hl7.Fhir.R4/Model/Generated/Age.cs index 3b3eaea236..9266eb35e3 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/Age.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/Age.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; diff --git a/src/Hl7.Fhir.R4/Model/Generated/AllergyIntolerance.cs b/src/Hl7.Fhir.R4/Model/Generated/AllergyIntolerance.cs index d99743caaa..3a4f6756bc 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/AllergyIntolerance.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/AllergyIntolerance.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -526,6 +526,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "substance": + Substance = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "manifestation": + Manifestation = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "onset": + OnsetElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "severity": + SeverityElement = (Code)value; + return this; + case "exposureRoute": + ExposureRoute = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "note": + Note = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1062,6 +1093,64 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "clinicalStatus": + ClinicalStatus = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "verificationStatus": + VerificationStatus = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "type": + TypeElement = (Code)value; + return this; + case "category": + CategoryElement = (List>)value; + return this; + case "criticality": + CriticalityElement = (Code)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "onset": + Onset = (Hl7.Fhir.Model.DataType)value; + return this; + case "recordedDate": + RecordedDateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "recorder": + Recorder = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "asserter": + Asserter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "lastOccurrence": + LastOccurrenceElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "note": + Note = (List)value; + return this; + case "reaction": + Reaction = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/Annotation.cs b/src/Hl7.Fhir.R4/Model/Generated/Annotation.cs index 19d9807fd2..694f273475 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/Annotation.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/Annotation.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -230,6 +230,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "author": + Author = (Hl7.Fhir.Model.DataType)value; + return this; + case "time": + TimeElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "text": + TextElement = (Hl7.Fhir.Model.Markdown)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/Appointment.cs b/src/Hl7.Fhir.R4/Model/Generated/Appointment.cs index 6e6842cafa..8a5fd0a958 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/Appointment.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/Appointment.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -388,6 +388,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (List)value; + return this; + case "actor": + Actor = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "required": + RequiredElement = (Code)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1124,6 +1149,82 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "cancelationReason": + CancelationReason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "serviceCategory": + ServiceCategory = (List)value; + return this; + case "serviceType": + ServiceType = (List)value; + return this; + case "specialty": + Specialty = (List)value; + return this; + case "appointmentType": + AppointmentType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "reasonReference": + ReasonReference = (List)value; + return this; + case "priority": + PriorityElement = (Hl7.Fhir.Model.UnsignedInt)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "supportingInformation": + SupportingInformation = (List)value; + return this; + case "start": + StartElement = (Hl7.Fhir.Model.Instant)value; + return this; + case "end": + EndElement = (Hl7.Fhir.Model.Instant)value; + return this; + case "minutesDuration": + MinutesDurationElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "slot": + Slot = (List)value; + return this; + case "created": + CreatedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "comment": + CommentElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "patientInstruction": + PatientInstructionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "participant": + Participant = (List)value; + return this; + case "requestedPeriod": + RequestedPeriod = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/AppointmentResponse.cs b/src/Hl7.Fhir.R4/Model/Generated/AppointmentResponse.cs index 64c82dcfbe..2ffd4f55d1 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/AppointmentResponse.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/AppointmentResponse.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -376,6 +376,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "appointment": + Appointment = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "start": + StartElement = (Hl7.Fhir.Model.Instant)value; + return this; + case "end": + EndElement = (Hl7.Fhir.Model.Instant)value; + return this; + case "participantType": + ParticipantType = (List)value; + return this; + case "actor": + Actor = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "participantStatus": + ParticipantStatusElement = (Code)value; + return this; + case "comment": + CommentElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/AuditEvent.cs b/src/Hl7.Fhir.R4/Model/Generated/AuditEvent.cs index 320d8d8f5f..2cfd658945 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/AuditEvent.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/AuditEvent.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -575,6 +575,49 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "role": + Role = (List)value; + return this; + case "who": + Who = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "altId": + AltIdElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "requestor": + RequestorElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "location": + Location = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "policy": + PolicyElement = (List)value; + return this; + case "media": + Media = (Hl7.Fhir.Model.Coding)value; + return this; + case "network": + Network = (Hl7.Fhir.Model.AuditEvent.NetworkComponent)value; + return this; + case "purposeOfUse": + PurposeOfUse = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -757,6 +800,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "address": + AddressElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "type": + TypeElement = (Code)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -937,6 +996,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "site": + SiteElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "observer": + Observer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "type": + Type = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1283,6 +1361,43 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "what": + What = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.Coding)value; + return this; + case "role": + Role = (Hl7.Fhir.Model.Coding)value; + return this; + case "lifecycle": + Lifecycle = (Hl7.Fhir.Model.Coding)value; + return this; + case "securityLabel": + SecurityLabel = (List)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "query": + QueryElement = (Hl7.Fhir.Model.Base64Binary)value; + return this; + case "detail": + Detail = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1447,6 +1562,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1840,6 +1971,49 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.Coding)value; + return this; + case "subtype": + Subtype = (List)value; + return this; + case "action": + ActionElement = (Code)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "recorded": + RecordedElement = (Hl7.Fhir.Model.Instant)value; + return this; + case "outcome": + OutcomeElement = (Code)value; + return this; + case "outcomeDesc": + OutcomeDescElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "purposeOfEvent": + PurposeOfEvent = (List)value; + return this; + case "agent": + Agent = (List)value; + return this; + case "source": + Source = (Hl7.Fhir.Model.AuditEvent.SourceComponent)value; + return this; + case "entity": + Entity = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/Basic.cs b/src/Hl7.Fhir.R4/Model/Generated/Basic.cs index 7d23fd9702..fb660b36b0 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/Basic.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/Basic.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -261,6 +261,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "created": + CreatedElement = (Hl7.Fhir.Model.Date)value; + return this; + case "author": + Author = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/BiologicallyDerivedProduct.cs b/src/Hl7.Fhir.R4/Model/Generated/BiologicallyDerivedProduct.cs index 9ded5f1b81..ca96fee32f 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/BiologicallyDerivedProduct.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/BiologicallyDerivedProduct.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -301,6 +301,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "collector": + Collector = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "source": + Source = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "collected": + Collected = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -502,6 +521,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "procedure": + Procedure = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "additive": + Additive = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "time": + Time = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -659,6 +700,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "time": + Time = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -889,6 +946,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "temperature": + TemperatureElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "scale": + ScaleElement = (Code)value; + return this; + case "duration": + Duration = (Hl7.Fhir.Model.Period)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1268,6 +1347,49 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "productCategory": + ProductCategoryElement = (Code)value; + return this; + case "productCode": + ProductCode = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "request": + Request = (List)value; + return this; + case "quantity": + QuantityElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "parent": + Parent = (List)value; + return this; + case "collection": + Collection = (Hl7.Fhir.Model.BiologicallyDerivedProduct.CollectionComponent)value; + return this; + case "processing": + Processing = (List)value; + return this; + case "manipulation": + Manipulation = (Hl7.Fhir.Model.BiologicallyDerivedProduct.ManipulationComponent)value; + return this; + case "storage": + Storage = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/BodyStructure.cs b/src/Hl7.Fhir.R4/Model/Generated/BodyStructure.cs index e44d0ae423..98f3e1bd78 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/BodyStructure.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/BodyStructure.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -344,6 +344,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "active": + ActiveElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "morphology": + Morphology = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "location": + Location = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "locationQualifier": + LocationQualifier = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "image": + Image = (List)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/CarePlan.cs b/src/Hl7.Fhir.R4/Model/Generated/CarePlan.cs index 3c6eb73562..44a9722b16 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/CarePlan.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/CarePlan.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -412,6 +412,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "outcomeCodeableConcept": + OutcomeCodeableConcept = (List)value; + return this; + case "outcomeReference": + OutcomeReference = (List)value; + return this; + case "progress": + Progress = (List)value; + return this; + case "reference": + Reference = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "detail": + Detail = (Hl7.Fhir.Model.CarePlan.DetailComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1000,6 +1025,67 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "kind": + KindElement = (Code)value; + return this; + case "instantiatesCanonical": + InstantiatesCanonicalElement = (List)value; + return this; + case "instantiatesUri": + InstantiatesUriElement = (List)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "reasonReference": + ReasonReference = (List)value; + return this; + case "goal": + Goal = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "statusReason": + StatusReason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "doNotPerform": + DoNotPerformElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "scheduled": + Scheduled = (Hl7.Fhir.Model.DataType)value; + return this; + case "location": + Location = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "performer": + Performer = (List)value; + return this; + case "product": + Product = (Hl7.Fhir.Model.DataType)value; + return this; + case "dailyAmount": + DailyAmount = (Hl7.Fhir.Model.Quantity)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1749,6 +1835,85 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "instantiatesCanonical": + InstantiatesCanonicalElement = (List)value; + return this; + case "instantiatesUri": + InstantiatesUriElement = (List)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "replaces": + Replaces = (List)value; + return this; + case "partOf": + PartOf = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "intent": + IntentElement = (Code)value; + return this; + case "category": + Category = (List)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "created": + CreatedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "author": + Author = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "contributor": + Contributor = (List)value; + return this; + case "careTeam": + CareTeam = (List)value; + return this; + case "addresses": + Addresses = (List)value; + return this; + case "supportingInfo": + SupportingInfo = (List)value; + return this; + case "goal": + Goal = (List)value; + return this; + case "activity": + Activity = (List)value; + return this; + case "note": + Note = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/CareTeam.cs b/src/Hl7.Fhir.R4/Model/Generated/CareTeam.cs index f60436e5d8..d8a2b3fb1c 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/CareTeam.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/CareTeam.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -273,6 +273,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "role": + Role = (List)value; + return this; + case "member": + Member = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "onBehalfOf": + OnBehalfOf = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -685,6 +707,55 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "category": + Category = (List)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "participant": + Participant = (List)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "reasonReference": + ReasonReference = (List)value; + return this; + case "managingOrganization": + ManagingOrganization = (List)value; + return this; + case "telecom": + Telecom = (List)value; + return this; + case "note": + Note = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/CatalogEntry.cs b/src/Hl7.Fhir.R4/Model/Generated/CatalogEntry.cs index e2c98b5ec4..0cca9bf004 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/CatalogEntry.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/CatalogEntry.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -231,6 +231,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "relationtype": + RelationtypeElement = (Code)value; + return this; + case "item": + Item = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -666,6 +682,55 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "orderable": + OrderableElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "referencedItem": + ReferencedItem = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "additionalIdentifier": + AdditionalIdentifier = (List)value; + return this; + case "classification": + Classification = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "validityPeriod": + ValidityPeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "validTo": + ValidToElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "lastUpdated": + LastUpdatedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "additionalCharacteristic": + AdditionalCharacteristic = (List)value; + return this; + case "additionalClassification": + AdditionalClassification = (List)value; + return this; + case "relatedEntry": + RelatedEntry = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/ChargeItem.cs b/src/Hl7.Fhir.R4/Model/Generated/ChargeItem.cs index 9b58aaf488..2227630db3 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/ChargeItem.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/ChargeItem.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -241,6 +241,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "function": + Function = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "actor": + Actor = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1021,6 +1037,94 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "definitionUri": + DefinitionUriElement = (List)value; + return this; + case "definitionCanonical": + DefinitionCanonicalElement = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "partOf": + PartOf = (List)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "context": + Context = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "occurrence": + Occurrence = (Hl7.Fhir.Model.DataType)value; + return this; + case "performer": + Performer = (List)value; + return this; + case "performingOrganization": + PerformingOrganization = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "requestingOrganization": + RequestingOrganization = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "costCenter": + CostCenter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "bodysite": + Bodysite = (List)value; + return this; + case "factorOverride": + FactorOverrideElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "priceOverride": + PriceOverride = (Hl7.Fhir.Model.Money)value; + return this; + case "overrideReason": + OverrideReasonElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "enterer": + Enterer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "enteredDate": + EnteredDateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "reason": + Reason = (List)value; + return this; + case "service": + Service = (List)value; + return this; + case "product": + Product = (Hl7.Fhir.Model.DataType)value; + return this; + case "account": + Account = (List)value; + return this; + case "note": + Note = (List)value; + return this; + case "supportingInformation": + SupportingInformation = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/ChargeItemDefinition.cs b/src/Hl7.Fhir.R4/Model/Generated/ChargeItemDefinition.cs index 60025b9207..71bdf6e028 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/ChargeItemDefinition.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/ChargeItemDefinition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -261,6 +261,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "language": + LanguageElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "expression": + ExpressionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -399,6 +418,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "applicability": + Applicability = (List)value; + return this; + case "priceComponent": + PriceComponent = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -615,6 +650,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "factor": + FactorElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "amount": + Amount = (Hl7.Fhir.Model.Money)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1451,6 +1508,85 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "derivedFromUri": + DerivedFromUriElement = (List)value; + return this; + case "partOf": + PartOfElement = (List)value; + return this; + case "replaces": + ReplacesElement = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "approvalDate": + ApprovalDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "lastReviewDate": + LastReviewDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "effectivePeriod": + EffectivePeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "instance": + Instance = (List)value; + return this; + case "applicability": + Applicability = (List)value; + return this; + case "propertyGroup": + PropertyGroup = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/Claim.cs b/src/Hl7.Fhir.R4/Model/Generated/Claim.cs index 96f656e891..48375bb89b 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/Claim.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/Claim.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -211,6 +211,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "claim": + Claim = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "relationship": + Relationship = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "reference": + Reference = (Hl7.Fhir.Model.Identifier)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -352,6 +371,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "party": + Party = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -592,6 +627,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "provider": + Provider = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "responsible": + ResponsibleElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "role": + Role = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "qualification": + Qualification = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -843,6 +903,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "timing": + Timing = (Hl7.Fhir.Model.DataType)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + case "reason": + Reason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1073,6 +1161,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "diagnosis": + Diagnosis = (Hl7.Fhir.Model.DataType)value; + return this; + case "type": + Type = (List)value; + return this; + case "onAdmission": + OnAdmission = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "packageCode": + PackageCode = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1321,6 +1434,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "type": + Type = (List)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "procedure": + Procedure = (Hl7.Fhir.Model.DataType)value; + return this; + case "udi": + Udi = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1645,6 +1783,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "focal": + FocalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "coverage": + Coverage = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "businessArrangement": + BusinessArrangementElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "preAuthRef": + PreAuthRefElement = (List)value; + return this; + case "claimResponse": + ClaimResponse = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1829,6 +1998,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "date": + DateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "location": + Location = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2501,6 +2689,79 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "careTeamSequence": + CareTeamSequenceElement = (List)value; + return this; + case "diagnosisSequence": + DiagnosisSequenceElement = (List)value; + return this; + case "procedureSequence": + ProcedureSequenceElement = (List)value; + return this; + case "informationSequence": + InformationSequenceElement = (List)value; + return this; + case "revenue": + Revenue = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "productOrService": + ProductOrService = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "modifier": + Modifier = (List)value; + return this; + case "programCode": + ProgramCode = (List)value; + return this; + case "serviced": + Serviced = (Hl7.Fhir.Model.DataType)value; + return this; + case "location": + Location = (Hl7.Fhir.Model.DataType)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "unitPrice": + UnitPrice = (Hl7.Fhir.Model.Money)value; + return this; + case "factor": + FactorElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "net": + Net = (Hl7.Fhir.Model.Money)value; + return this; + case "udi": + Udi = (List)value; + return this; + case "bodySite": + BodySite = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subSite": + SubSite = (List)value; + return this; + case "encounter": + Encounter = (List)value; + return this; + case "detail": + Detail = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2914,6 +3175,52 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "revenue": + Revenue = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "productOrService": + ProductOrService = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "modifier": + Modifier = (List)value; + return this; + case "programCode": + ProgramCode = (List)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "unitPrice": + UnitPrice = (Hl7.Fhir.Model.Money)value; + return this; + case "factor": + FactorElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "net": + Net = (Hl7.Fhir.Model.Money)value; + return this; + case "udi": + Udi = (List)value; + return this; + case "subDetail": + SubDetail = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3296,6 +3603,49 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "revenue": + Revenue = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "productOrService": + ProductOrService = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "modifier": + Modifier = (List)value; + return this; + case "programCode": + ProgramCode = (List)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "unitPrice": + UnitPrice = (Hl7.Fhir.Model.Money)value; + return this; + case "factor": + FactorElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "net": + Net = (Hl7.Fhir.Model.Money)value; + return this; + case "udi": + Udi = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -4046,6 +4396,97 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subType": + SubType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "use": + UseElement = (Code)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "billablePeriod": + BillablePeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "created": + CreatedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "enterer": + Enterer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "insurer": + Insurer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "provider": + Provider = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "priority": + Priority = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "fundsReserve": + FundsReserve = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "related": + Related = (List)value; + return this; + case "prescription": + Prescription = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "originalPrescription": + OriginalPrescription = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "payee": + Payee = (Hl7.Fhir.Model.Claim.PayeeComponent)value; + return this; + case "referral": + Referral = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "facility": + Facility = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "careTeam": + CareTeam = (List)value; + return this; + case "supportingInfo": + SupportingInfo = (List)value; + return this; + case "diagnosis": + Diagnosis = (List)value; + return this; + case "procedure": + Procedure = (List)value; + return this; + case "insurance": + Insurance = (List)value; + return this; + case "accident": + Accident = (Hl7.Fhir.Model.Claim.AccidentComponent)value; + return this; + case "item": + Item = (List)value; + return this; + case "total": + Total = (Hl7.Fhir.Model.Money)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/ClaimResponse.cs b/src/Hl7.Fhir.R4/Model/Generated/ClaimResponse.cs index d6d6fd0a0b..2c2fc30b1a 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/ClaimResponse.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/ClaimResponse.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -267,6 +267,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "itemSequence": + ItemSequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "noteNumber": + NoteNumberElement = (List)value; + return this; + case "adjudication": + Adjudication = (List)value; + return this; + case "detail": + Detail = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -467,6 +489,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "reason": + Reason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "amount": + Amount = (Hl7.Fhir.Model.Money)value; + return this; + case "value": + ValueElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -686,6 +730,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "detailSequence": + DetailSequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "noteNumber": + NoteNumberElement = (List)value; + return this; + case "adjudication": + Adjudication = (List)value; + return this; + case "subDetail": + SubDetail = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -883,6 +949,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "subDetailSequence": + SubDetailSequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "noteNumber": + NoteNumberElement = (List)value; + return this; + case "adjudication": + Adjudication = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1469,6 +1554,70 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "itemSequence": + ItemSequenceElement = (List)value; + return this; + case "detailSequence": + DetailSequenceElement = (List)value; + return this; + case "subdetailSequence": + SubdetailSequenceElement = (List)value; + return this; + case "provider": + Provider = (List)value; + return this; + case "productOrService": + ProductOrService = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "modifier": + Modifier = (List)value; + return this; + case "programCode": + ProgramCode = (List)value; + return this; + case "serviced": + Serviced = (Hl7.Fhir.Model.DataType)value; + return this; + case "location": + Location = (Hl7.Fhir.Model.DataType)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "unitPrice": + UnitPrice = (Hl7.Fhir.Model.Money)value; + return this; + case "factor": + FactorElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "net": + Net = (Hl7.Fhir.Model.Money)value; + return this; + case "bodySite": + BodySite = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subSite": + SubSite = (List)value; + return this; + case "noteNumber": + NoteNumberElement = (List)value; + return this; + case "adjudication": + Adjudication = (List)value; + return this; + case "detail": + Detail = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1810,6 +1959,43 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "productOrService": + ProductOrService = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "modifier": + Modifier = (List)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "unitPrice": + UnitPrice = (Hl7.Fhir.Model.Money)value; + return this; + case "factor": + FactorElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "net": + Net = (Hl7.Fhir.Model.Money)value; + return this; + case "noteNumber": + NoteNumberElement = (List)value; + return this; + case "adjudication": + Adjudication = (List)value; + return this; + case "subDetail": + SubDetail = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2120,6 +2306,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "productOrService": + ProductOrService = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "modifier": + Modifier = (List)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "unitPrice": + UnitPrice = (Hl7.Fhir.Model.Money)value; + return this; + case "factor": + FactorElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "net": + Net = (Hl7.Fhir.Model.Money)value; + return this; + case "noteNumber": + NoteNumberElement = (List)value; + return this; + case "adjudication": + Adjudication = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2265,6 +2485,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "amount": + Amount = (Hl7.Fhir.Model.Money)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2506,6 +2742,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "adjustment": + Adjustment = (Hl7.Fhir.Model.Money)value; + return this; + case "adjustmentReason": + AdjustmentReason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "amount": + Amount = (Hl7.Fhir.Model.Money)value; + return this; + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2745,6 +3009,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "number": + NumberElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "type": + TypeElement = (Code)value; + return this; + case "text": + TextElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "language": + Language = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3007,6 +3293,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "focal": + FocalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "coverage": + Coverage = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "businessArrangement": + BusinessArrangementElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "claimResponse": + ClaimResponse = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3244,6 +3555,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "itemSequence": + ItemSequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "detailSequence": + DetailSequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "subDetailSequence": + SubDetailSequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -4036,6 +4369,97 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subType": + SubType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "use": + UseElement = (Code)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "created": + CreatedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "insurer": + Insurer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "requestor": + Requestor = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "request": + Request = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "outcome": + OutcomeElement = (Code)value; + return this; + case "disposition": + DispositionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "preAuthRef": + PreAuthRefElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "preAuthPeriod": + PreAuthPeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "payeeType": + PayeeType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "item": + Item = (List)value; + return this; + case "addItem": + AddItem = (List)value; + return this; + case "adjudication": + Adjudication = (List)value; + return this; + case "total": + Total = (List)value; + return this; + case "payment": + Payment = (Hl7.Fhir.Model.ClaimResponse.PaymentComponent)value; + return this; + case "fundsReserve": + FundsReserve = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "formCode": + FormCode = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "form": + Form = (Hl7.Fhir.Model.Attachment)value; + return this; + case "processNote": + ProcessNote = (List)value; + return this; + case "communicationRequest": + CommunicationRequest = (List)value; + return this; + case "insurance": + Insurance = (List)value; + return this; + case "error": + Error = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/ClinicalImpression.cs b/src/Hl7.Fhir.R4/Model/Generated/ClinicalImpression.cs index 0e0d22dd0a..2417136cc0 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/ClinicalImpression.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/ClinicalImpression.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -218,6 +218,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "item": + Item = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -395,6 +411,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "itemCodeableConcept": + ItemCodeableConcept = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "itemReference": + ItemReference = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "basis": + BasisElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1019,6 +1054,76 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "statusReason": + StatusReason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "effective": + Effective = (Hl7.Fhir.Model.DataType)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "assessor": + Assessor = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "previous": + Previous = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "problem": + Problem = (List)value; + return this; + case "investigation": + Investigation = (List)value; + return this; + case "protocol": + ProtocolElement = (List)value; + return this; + case "summary": + SummaryElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "finding": + Finding = (List)value; + return this; + case "prognosisCodeableConcept": + PrognosisCodeableConcept = (List)value; + return this; + case "prognosisReference": + PrognosisReference = (List)value; + return this; + case "supportingInfo": + SupportingInfo = (List)value; + return this; + case "note": + Note = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/Communication.cs b/src/Hl7.Fhir.R4/Model/Generated/Communication.cs index f2635a2c2a..211464f456 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/Communication.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/Communication.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -168,6 +168,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "content": + Content = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -881,6 +894,85 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "instantiatesCanonical": + InstantiatesCanonicalElement = (List)value; + return this; + case "instantiatesUri": + InstantiatesUriElement = (List)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "partOf": + PartOf = (List)value; + return this; + case "inResponseTo": + InResponseTo = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "statusReason": + StatusReason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "category": + Category = (List)value; + return this; + case "priority": + PriorityElement = (Code)value; + return this; + case "medium": + Medium = (List)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "topic": + Topic = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "about": + About = (List)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "sent": + SentElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "received": + ReceivedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "recipient": + Recipient = (List)value; + return this; + case "sender": + Sender = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "reasonReference": + ReasonReference = (List)value; + return this; + case "payload": + Payload = (List)value; + return this; + case "note": + Note = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/CommunicationRequest.cs b/src/Hl7.Fhir.R4/Model/Generated/CommunicationRequest.cs index d9f62c6ed2..9638087d7a 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/CommunicationRequest.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/CommunicationRequest.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -168,6 +168,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "content": + Content = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -822,6 +835,82 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "replaces": + Replaces = (List)value; + return this; + case "groupIdentifier": + GroupIdentifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "statusReason": + StatusReason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "category": + Category = (List)value; + return this; + case "priority": + PriorityElement = (Code)value; + return this; + case "doNotPerform": + DoNotPerformElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "medium": + Medium = (List)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "about": + About = (List)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "payload": + Payload = (List)value; + return this; + case "occurrence": + Occurrence = (Hl7.Fhir.Model.DataType)value; + return this; + case "authoredOn": + AuthoredOnElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "requester": + Requester = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "recipient": + Recipient = (List)value; + return this; + case "sender": + Sender = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "reasonReference": + ReasonReference = (List)value; + return this; + case "note": + Note = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/CompartmentDefinition.cs b/src/Hl7.Fhir.R4/Model/Generated/CompartmentDefinition.cs index 15f3bbfec2..5d395ea3f3 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/CompartmentDefinition.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/CompartmentDefinition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -265,6 +265,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + CodeElement = (Code)value; + return this; + case "param": + ParamElement = (List)value; + return this; + case "documentation": + DocumentationElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -846,6 +865,58 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "code": + CodeElement = (Code)value; + return this; + case "search": + SearchElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "resource": + Resource = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/Composition.cs b/src/Hl7.Fhir.R4/Model/Generated/Composition.cs index 3e0d10dc03..5d661c22e4 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/Composition.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/Composition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -346,6 +346,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "mode": + ModeElement = (Code)value; + return this; + case "time": + TimeElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "party": + Party = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -508,6 +527,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + CodeElement = (Code)value; + return this; + case "target": + Target = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -670,6 +705,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (List)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "detail": + Detail = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1024,6 +1078,46 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "author": + Author = (List)value; + return this; + case "focus": + Focus = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "text": + Text = (Hl7.Fhir.Model.Narrative)value; + return this; + case "mode": + ModeElement = (Code)value; + return this; + case "orderedBy": + OrderedBy = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "entry": + Entry = (List)value; + return this; + case "emptyReason": + EmptyReason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "section": + Section = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1524,6 +1618,61 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "category": + Category = (List)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "author": + Author = (List)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "confidentiality": + ConfidentialityElement = (Code)value; + return this; + case "attester": + Attester = (List)value; + return this; + case "custodian": + Custodian = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "relatesTo": + RelatesTo = (List)value; + return this; + case "event": + Event = (List)value; + return this; + case "section": + Section = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/ConceptMap.cs b/src/Hl7.Fhir.R4/Model/Generated/ConceptMap.cs index 719f7b812e..7e888d92e4 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/ConceptMap.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/ConceptMap.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -370,6 +370,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "source": + SourceElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "sourceVersion": + SourceVersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "target": + TargetElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "targetVersion": + TargetVersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "element": + Element = (List)value; + return this; + case "unmapped": + Unmapped = (Hl7.Fhir.Model.ConceptMap.UnmappedComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -568,6 +596,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + CodeElement = (Hl7.Fhir.Model.Code)value; + return this; + case "display": + DisplayElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "target": + Target = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -866,6 +913,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + CodeElement = (Hl7.Fhir.Model.Code)value; + return this; + case "display": + DisplayElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "equivalence": + EquivalenceElement = (Code)value; + return this; + case "comment": + CommentElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "dependsOn": + DependsOn = (List)value; + return this; + case "product": + Product = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1121,6 +1196,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "property": + PropertyElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "system": + SystemElement = (Hl7.Fhir.Model.Canonical)value; + return this; + case "value": + ValueElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "display": + DisplayElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1376,6 +1473,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "mode": + ModeElement = (Code)value; + return this; + case "code": + CodeElement = (Hl7.Fhir.Model.Code)value; + return this; + case "display": + DisplayElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "url": + UrlElement = (Hl7.Fhir.Model.Canonical)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2044,6 +2163,70 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "source": + Source = (Hl7.Fhir.Model.DataType)value; + return this; + case "target": + Target = (Hl7.Fhir.Model.DataType)value; + return this; + case "group": + Group = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/Condition.cs b/src/Hl7.Fhir.R4/Model/Generated/Condition.cs index 02eac400f4..0de4d87b4c 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/Condition.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/Condition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -303,6 +303,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "summary": + Summary = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "assessment": + Assessment = (List)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -445,6 +464,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (List)value; + return this; + case "detail": + Detail = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -926,6 +961,67 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "clinicalStatus": + ClinicalStatus = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "verificationStatus": + VerificationStatus = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "category": + Category = (List)value; + return this; + case "severity": + Severity = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "bodySite": + BodySite = (List)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "onset": + Onset = (Hl7.Fhir.Model.DataType)value; + return this; + case "abatement": + Abatement = (Hl7.Fhir.Model.DataType)value; + return this; + case "recordedDate": + RecordedDateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "recorder": + Recorder = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "asserter": + Asserter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "stage": + Stage = (List)value; + return this; + case "evidence": + Evidence = (List)value; + return this; + case "note": + Note = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/Consent.cs b/src/Hl7.Fhir.R4/Model/Generated/Consent.cs index 1bdc49df03..2228366d7f 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/Consent.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/Consent.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -324,6 +324,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "authority": + AuthorityElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "uri": + UriElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -519,6 +535,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "verified": + VerifiedElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "verifiedWith": + VerifiedWith = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "verificationDate": + VerificationDateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -877,6 +912,49 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "actor": + Actor = (List)value; + return this; + case "action": + Action = (List)value; + return this; + case "securityLabel": + SecurityLabel = (List)value; + return this; + case "purpose": + Purpose = (List)value; + return this; + case "class": + Class = (List)value; + return this; + case "code": + Code = (List)value; + return this; + case "dataPeriod": + DataPeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "data": + Data = (List)value; + return this; + case "provision": + Provision = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1026,6 +1104,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "role": + Role = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "reference": + Reference = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1185,6 +1279,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "meaning": + MeaningElement = (Code)value; + return this; + case "reference": + Reference = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1597,6 +1707,55 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "scope": + Scope = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "category": + Category = (List)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "dateTime": + DateTimeElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "performer": + Performer = (List)value; + return this; + case "organization": + Organization = (List)value; + return this; + case "source": + Source = (Hl7.Fhir.Model.DataType)value; + return this; + case "policy": + Policy = (List)value; + return this; + case "policyRule": + PolicyRule = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "verification": + Verification = (List)value; + return this; + case "provision": + Provision = (Hl7.Fhir.Model.Consent.provisionComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/Contract.cs b/src/Hl7.Fhir.R4/Model/Generated/Contract.cs index eb8fc3a6ed..e72d82178d 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/Contract.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/Contract.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -531,6 +531,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subType": + SubType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "publisher": + Publisher = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "publicationDate": + PublicationDateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publicationStatus": + PublicationStatusElement = (Code)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -926,6 +954,52 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "issued": + IssuedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "applies": + Applies = (Hl7.Fhir.Model.Period)value; + return this; + case "topic": + Topic = (Hl7.Fhir.Model.DataType)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subType": + SubType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "text": + TextElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "securityLabel": + SecurityLabel = (List)value; + return this; + case "offer": + Offer = (Hl7.Fhir.Model.Contract.ContractOfferComponent)value; + return this; + case "asset": + Asset = (List)value; + return this; + case "action": + Action = (List)value; + return this; + case "group": + Group = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1138,6 +1212,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "number": + NumberElement = (List)value; + return this; + case "classification": + Classification = (Hl7.Fhir.Model.Coding)value; + return this; + case "category": + Category = (List)value; + return this; + case "control": + Control = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1508,6 +1604,46 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "party": + Party = (List)value; + return this; + case "topic": + Topic = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "decision": + Decision = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "decisionMode": + DecisionMode = (List)value; + return this; + case "answer": + Answer = (List)value; + return this; + case "text": + TextElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "linkId": + LinkIdElement = (List)value; + return this; + case "securityLabelNumber": + SecurityLabelNumberElement = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1653,6 +1789,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "reference": + Reference = (List)value; + return this; + case "role": + Role = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1768,6 +1920,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2262,6 +2427,61 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "scope": + Scope = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "type": + Type = (List)value; + return this; + case "typeReference": + TypeReference = (List)value; + return this; + case "subtype": + Subtype = (List)value; + return this; + case "relationship": + Relationship = (Hl7.Fhir.Model.Coding)value; + return this; + case "context": + Context = (List)value; + return this; + case "condition": + ConditionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "periodType": + PeriodType = (List)value; + return this; + case "period": + Period = (List)value; + return this; + case "usePeriod": + UsePeriod = (List)value; + return this; + case "text": + TextElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "linkId": + LinkIdElement = (List)value; + return this; + case "answer": + Answer = (List)value; + return this; + case "securityLabelNumber": + SecurityLabelNumberElement = (List)value; + return this; + case "valuedItem": + ValuedItem = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2450,6 +2670,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "reference": + Reference = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "code": + Code = (List)value; + return this; + case "text": + TextElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2970,6 +3209,58 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "entity": + Entity = (Hl7.Fhir.Model.DataType)value; + return this; + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "effectiveTime": + EffectiveTimeElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "unitPrice": + UnitPrice = (Hl7.Fhir.Model.Money)value; + return this; + case "factor": + FactorElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "points": + PointsElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "net": + Net = (Hl7.Fhir.Model.Money)value; + return this; + case "payment": + PaymentElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "paymentDate": + PaymentDateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "responsible": + Responsible = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "recipient": + Recipient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "linkId": + LinkIdElement = (List)value; + return this; + case "securityLabelNumber": + SecurityLabelNumberElement = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3694,6 +3985,79 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "doNotPerform": + DoNotPerformElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (List)value; + return this; + case "intent": + Intent = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "linkId": + LinkIdElement = (List)value; + return this; + case "status": + Status = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "context": + Context = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "contextLinkId": + ContextLinkIdElement = (List)value; + return this; + case "occurrence": + Occurrence = (Hl7.Fhir.Model.DataType)value; + return this; + case "requester": + Requester = (List)value; + return this; + case "requesterLinkId": + RequesterLinkIdElement = (List)value; + return this; + case "performerType": + PerformerType = (List)value; + return this; + case "performerRole": + PerformerRole = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "performer": + Performer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "performerLinkId": + PerformerLinkIdElement = (List)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "reasonReference": + ReasonReference = (List)value; + return this; + case "reason": + ReasonElement = (List)value; + return this; + case "reasonLinkId": + ReasonLinkIdElement = (List)value; + return this; + case "note": + Note = (List)value; + return this; + case "securityLabelNumber": + SecurityLabelNumberElement = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3849,6 +4213,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "reference": + Reference = (List)value; + return this; + case "role": + Role = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -4013,6 +4393,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.Coding)value; + return this; + case "party": + Party = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "signature": + Signature = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -4132,6 +4531,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "content": + Content = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -4249,6 +4661,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "content": + Content = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -4366,6 +4791,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "content": + Content = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -5342,6 +5780,115 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "legalState": + LegalState = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "instantiatesCanonical": + InstantiatesCanonical = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "instantiatesUri": + InstantiatesUriElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "contentDerivative": + ContentDerivative = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "issued": + IssuedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "applies": + Applies = (Hl7.Fhir.Model.Period)value; + return this; + case "expirationType": + ExpirationType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (List)value; + return this; + case "authority": + Authority = (List)value; + return this; + case "domain": + Domain = (List)value; + return this; + case "site": + Site = (List)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "subtitle": + SubtitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "alias": + AliasElement = (List)value; + return this; + case "author": + Author = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "scope": + Scope = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "topic": + Topic = (Hl7.Fhir.Model.DataType)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subType": + SubType = (List)value; + return this; + case "contentDefinition": + ContentDefinition = (Hl7.Fhir.Model.Contract.ContentDefinitionComponent)value; + return this; + case "term": + Term = (List)value; + return this; + case "supportingInfo": + SupportingInfo = (List)value; + return this; + case "relevantHistory": + RelevantHistory = (List)value; + return this; + case "signer": + Signer = (List)value; + return this; + case "friendly": + Friendly = (List)value; + return this; + case "legal": + Legal = (List)value; + return this; + case "rule": + Rule = (List)value; + return this; + case "legallyBinding": + LegallyBinding = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/Contributor.cs b/src/Hl7.Fhir.R4/Model/Generated/Contributor.cs index a1f80dc885..2f078cc91d 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/Contributor.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/Contributor.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -264,6 +264,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/Count.cs b/src/Hl7.Fhir.R4/Model/Generated/Count.cs index de90b9b3ae..e964d92efb 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/Count.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/Count.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; diff --git a/src/Hl7.Fhir.R4/Model/Generated/Coverage.cs b/src/Hl7.Fhir.R4/Model/Generated/Coverage.cs index 4674298422..c8575684bd 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/Coverage.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/Coverage.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -247,6 +247,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "value": + ValueElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -410,6 +429,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + case "exception": + Exception = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -548,6 +586,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1115,6 +1169,67 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "policyHolder": + PolicyHolder = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "subscriber": + Subscriber = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "subscriberId": + SubscriberIdElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "beneficiary": + Beneficiary = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "dependent": + DependentElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "relationship": + Relationship = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "payor": + Payor = (List)value; + return this; + case "class": + Class = (List)value; + return this; + case "order": + OrderElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "network": + NetworkElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "costToBeneficiary": + CostToBeneficiary = (List)value; + return this; + case "subrogation": + SubrogationElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "contract": + Contract = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/CoverageEligibilityRequest.cs b/src/Hl7.Fhir.R4/Model/Generated/CoverageEligibilityRequest.cs index d3a6a90d36..c837077edc 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/CoverageEligibilityRequest.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/CoverageEligibilityRequest.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -281,6 +281,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "information": + Information = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "appliesToAll": + AppliesToAllElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -478,6 +497,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "focal": + FocalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "coverage": + Coverage = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "businessArrangement": + BusinessArrangementElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -813,6 +851,46 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "supportingInfoSequence": + SupportingInfoSequenceElement = (List)value; + return this; + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "productOrService": + ProductOrService = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "modifier": + Modifier = (List)value; + return this; + case "provider": + Provider = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "unitPrice": + UnitPrice = (Hl7.Fhir.Model.Money)value; + return this; + case "facility": + Facility = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "diagnosis": + Diagnosis = (List)value; + return this; + case "detail": + Detail = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -939,6 +1017,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "diagnosis": + Diagnosis = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1390,6 +1481,58 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "priority": + Priority = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "purpose": + PurposeElement = (List>)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "serviced": + Serviced = (Hl7.Fhir.Model.DataType)value; + return this; + case "created": + CreatedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "enterer": + Enterer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "provider": + Provider = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "insurer": + Insurer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "facility": + Facility = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "supportingInfo": + SupportingInfo = (List)value; + return this; + case "insurance": + Insurance = (List)value; + return this; + case "item": + Item = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/CoverageEligibilityResponse.cs b/src/Hl7.Fhir.R4/Model/Generated/CoverageEligibilityResponse.cs index a90b03e0ad..4103d993a2 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/CoverageEligibilityResponse.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/CoverageEligibilityResponse.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -284,6 +284,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "coverage": + Coverage = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "inforce": + InforceElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "benefitPeriod": + BenefitPeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "item": + Item = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -775,6 +797,58 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "productOrService": + ProductOrService = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "modifier": + Modifier = (List)value; + return this; + case "provider": + Provider = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "excluded": + ExcludedElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "network": + Network = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "unit": + Unit = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "term": + Term = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "benefit": + Benefit = (List)value; + return this; + case "authorizationRequired": + AuthorizationRequiredElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "authorizationSupporting": + AuthorizationSupporting = (List)value; + return this; + case "authorizationUrl": + AuthorizationUrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -949,6 +1023,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "allowed": + Allowed = (Hl7.Fhir.Model.DataType)value; + return this; + case "used": + Used = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1066,6 +1159,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1593,6 +1699,61 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "purpose": + PurposeElement = (List>)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "serviced": + Serviced = (Hl7.Fhir.Model.DataType)value; + return this; + case "created": + CreatedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "requestor": + Requestor = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "request": + Request = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "outcome": + OutcomeElement = (Code)value; + return this; + case "disposition": + DispositionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "insurer": + Insurer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "insurance": + Insurance = (List)value; + return this; + case "preAuthRef": + PreAuthRefElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "form": + Form = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "error": + Error = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/DataRequirement.cs b/src/Hl7.Fhir.R4/Model/Generated/DataRequirement.cs index 9bf5845dfa..1faa7c7437 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/DataRequirement.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/DataRequirement.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -304,6 +304,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "path": + PathElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "searchParam": + SearchParamElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "valueSet": + ValueSetElement = (Hl7.Fhir.Model.Canonical)value; + return this; + case "code": + Code = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -500,6 +522,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "path": + PathElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "searchParam": + SearchParamElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -677,6 +718,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "path": + PathElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "direction": + DirectionElement = (Code)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1005,6 +1062,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "profile": + ProfileElement = (List)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.DataType)value; + return this; + case "mustSupport": + MustSupportElement = (List)value; + return this; + case "codeFilter": + CodeFilter = (List)value; + return this; + case "dateFilter": + DateFilter = (List)value; + return this; + case "limit": + LimitElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "sort": + Sort = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/DetectedIssue.cs b/src/Hl7.Fhir.R4/Model/Generated/DetectedIssue.cs index 32f97014bc..8ac2879c43 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/DetectedIssue.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/DetectedIssue.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -218,6 +218,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (List)value; + return this; + case "detail": + Detail = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -396,6 +412,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "action": + Action = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "author": + Author = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -820,6 +855,52 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "severity": + SeverityElement = (Code)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "identified": + Identified = (Hl7.Fhir.Model.DataType)value; + return this; + case "author": + Author = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "implicated": + Implicated = (List)value; + return this; + case "evidence": + Evidence = (List)value; + return this; + case "detail": + DetailElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "reference": + ReferenceElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "mitigation": + Mitigation = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/Device.cs b/src/Hl7.Fhir.R4/Model/Generated/Device.cs index f032f8b48b..a782d5f06c 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/Device.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/Device.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -460,6 +460,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "deviceIdentifier": + DeviceIdentifierElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "issuer": + IssuerElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "jurisdiction": + JurisdictionElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "carrierAIDC": + CarrierAIDCElement = (Hl7.Fhir.Model.Base64Binary)value; + return this; + case "carrierHRF": + CarrierHRFElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "entryType": + EntryTypeElement = (Code)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -639,6 +667,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "type": + TypeElement = (Code)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -790,6 +834,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "systemType": + SystemType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -962,6 +1022,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "component": + Component = (Hl7.Fhir.Model.Identifier)value; + return this; + case "value": + ValueElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1119,6 +1198,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "valueQuantity": + ValueQuantity = (List)value; + return this; + case "valueCode": + ValueCode = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1951,6 +2049,94 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "definition": + Definition = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "udiCarrier": + UdiCarrier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "statusReason": + StatusReason = (List)value; + return this; + case "distinctIdentifier": + DistinctIdentifierElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "manufacturer": + ManufacturerElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "manufactureDate": + ManufactureDateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "expirationDate": + ExpirationDateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "lotNumber": + LotNumberElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "serialNumber": + SerialNumberElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "deviceName": + DeviceName = (List)value; + return this; + case "modelNumber": + ModelNumberElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "partNumber": + PartNumberElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "specialization": + Specialization = (List)value; + return this; + case "version": + Version = (List)value; + return this; + case "property": + Property = (List)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "owner": + Owner = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "location": + Location = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "note": + Note = (List)value; + return this; + case "safety": + Safety = (List)value; + return this; + case "parent": + Parent = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/DeviceDefinition.cs b/src/Hl7.Fhir.R4/Model/Generated/DeviceDefinition.cs index 4e23899590..f52ec98878 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/DeviceDefinition.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/DeviceDefinition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -264,6 +264,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "deviceIdentifier": + DeviceIdentifierElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "issuer": + IssuerElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "jurisdiction": + JurisdictionElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -437,6 +456,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "type": + TypeElement = (Code)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -606,6 +641,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "systemType": + SystemTypeElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -740,6 +791,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "description": + Description = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -896,6 +963,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "valueQuantity": + ValueQuantity = (List)value; + return this; + case "valueCode": + ValueCode = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1087,6 +1173,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "substance": + Substance = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "alternate": + AlternateElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "allergenicIndicator": + AllergenicIndicatorElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1722,6 +1827,82 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "udiDeviceIdentifier": + UdiDeviceIdentifier = (List)value; + return this; + case "manufacturer": + Manufacturer = (Hl7.Fhir.Model.DataType)value; + return this; + case "deviceName": + DeviceName = (List)value; + return this; + case "modelNumber": + ModelNumberElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "specialization": + Specialization = (List)value; + return this; + case "version": + VersionElement = (List)value; + return this; + case "safety": + Safety = (List)value; + return this; + case "shelfLifeStorage": + ShelfLifeStorage = (List)value; + return this; + case "physicalCharacteristics": + PhysicalCharacteristics = (Hl7.Fhir.Model.ProdCharacteristic)value; + return this; + case "languageCode": + LanguageCode = (List)value; + return this; + case "capability": + Capability = (List)value; + return this; + case "property": + Property = (List)value; + return this; + case "owner": + Owner = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "onlineInformation": + OnlineInformationElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "note": + Note = (List)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "parentDevice": + ParentDevice = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "material": + Material = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/DeviceMetric.cs b/src/Hl7.Fhir.R4/Model/Generated/DeviceMetric.cs index 3dcf4f83bc..20d9ce4d2e 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/DeviceMetric.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/DeviceMetric.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -456,6 +456,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "state": + StateElement = (Code)value; + return this; + case "time": + TimeElement = (Hl7.Fhir.Model.Instant)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -818,6 +837,46 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "unit": + Unit = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "source": + Source = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "parent": + Parent = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "operationalStatus": + OperationalStatusElement = (Code)value; + return this; + case "color": + ColorElement = (Code)value; + return this; + case "category": + CategoryElement = (Code)value; + return this; + case "measurementPeriod": + MeasurementPeriod = (Hl7.Fhir.Model.Timing)value; + return this; + case "calibration": + Calibration = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/DeviceRequest.cs b/src/Hl7.Fhir.R4/Model/Generated/DeviceRequest.cs index 10ba002995..bcc3f377fc 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/DeviceRequest.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/DeviceRequest.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -188,6 +188,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -930,6 +946,88 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "instantiatesCanonical": + InstantiatesCanonicalElement = (List)value; + return this; + case "instantiatesUri": + InstantiatesUriElement = (List)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "priorRequest": + PriorRequest = (List)value; + return this; + case "groupIdentifier": + GroupIdentifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "intent": + IntentElement = (Code)value; + return this; + case "priority": + PriorityElement = (Code)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.DataType)value; + return this; + case "parameter": + Parameter = (List)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "occurrence": + Occurrence = (Hl7.Fhir.Model.DataType)value; + return this; + case "authoredOn": + AuthoredOnElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "requester": + Requester = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "performerType": + PerformerType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "performer": + Performer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "reasonReference": + ReasonReference = (List)value; + return this; + case "insurance": + Insurance = (List)value; + return this; + case "supportingInfo": + SupportingInfo = (List)value; + return this; + case "note": + Note = (List)value; + return this; + case "relevantHistory": + RelevantHistory = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/DeviceUseStatement.cs b/src/Hl7.Fhir.R4/Model/Generated/DeviceUseStatement.cs index 8106c81b39..eaf7e44cf9 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/DeviceUseStatement.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/DeviceUseStatement.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -509,6 +509,55 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "derivedFrom": + DerivedFrom = (List)value; + return this; + case "timing": + Timing = (Hl7.Fhir.Model.DataType)value; + return this; + case "recordedOn": + RecordedOnElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "source": + Source = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "device": + Device = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "reasonReference": + ReasonReference = (List)value; + return this; + case "bodySite": + BodySite = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "note": + Note = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/DiagnosticReport.cs b/src/Hl7.Fhir.R4/Model/Generated/DiagnosticReport.cs index cf1879b398..53197d1ff0 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/DiagnosticReport.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/DiagnosticReport.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -277,6 +277,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "comment": + CommentElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "link": + Link = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -826,6 +842,70 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "category": + Category = (List)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "effective": + Effective = (Hl7.Fhir.Model.DataType)value; + return this; + case "issued": + IssuedElement = (Hl7.Fhir.Model.Instant)value; + return this; + case "performer": + Performer = (List)value; + return this; + case "resultsInterpreter": + ResultsInterpreter = (List)value; + return this; + case "specimen": + Specimen = (List)value; + return this; + case "result": + Result = (List)value; + return this; + case "imagingStudy": + ImagingStudy = (List)value; + return this; + case "media": + Media = (List)value; + return this; + case "conclusion": + ConclusionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "conclusionCode": + ConclusionCode = (List)value; + return this; + case "presentedForm": + PresentedForm = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/Distance.cs b/src/Hl7.Fhir.R4/Model/Generated/Distance.cs index 130a560a7c..9e42167de6 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/Distance.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/Distance.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; diff --git a/src/Hl7.Fhir.R4/Model/Generated/DocumentManifest.cs b/src/Hl7.Fhir.R4/Model/Generated/DocumentManifest.cs index f03842cb04..fdd04208ff 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/DocumentManifest.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/DocumentManifest.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -188,6 +188,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "ref": + Ref = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -607,6 +623,52 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "masterIdentifier": + MasterIdentifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "created": + CreatedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "author": + Author = (List)value; + return this; + case "recipient": + Recipient = (List)value; + return this; + case "source": + SourceElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "content": + Content = (List)value; + return this; + case "related": + Related = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/DocumentReference.cs b/src/Hl7.Fhir.R4/Model/Generated/DocumentReference.cs index 2fb679502f..13714b34b6 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/DocumentReference.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/DocumentReference.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -211,6 +211,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + CodeElement = (Code)value; + return this; + case "target": + Target = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -348,6 +364,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "attachment": + Attachment = (Hl7.Fhir.Model.Attachment)value; + return this; + case "format": + Format = (Hl7.Fhir.Model.Coding)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -601,6 +633,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "encounter": + Encounter = (List)value; + return this; + case "event": + Event = (List)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "facilityType": + FacilityType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "practiceSetting": + PracticeSetting = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "sourcePatientInfo": + SourcePatientInfo = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "related": + Related = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1114,6 +1177,64 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "masterIdentifier": + MasterIdentifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "docStatus": + DocStatusElement = (Code)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "category": + Category = (List)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.Instant)value; + return this; + case "author": + Author = (List)value; + return this; + case "authenticator": + Authenticator = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "custodian": + Custodian = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "relatesTo": + RelatesTo = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "securityLabel": + SecurityLabel = (List)value; + return this; + case "content": + Content = (List)value; + return this; + case "context": + Context = (Hl7.Fhir.Model.DocumentReference.ContextComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/Dosage.cs b/src/Hl7.Fhir.R4/Model/Generated/Dosage.cs index df792bbf5f..8768962e84 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/Dosage.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/Dosage.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -211,6 +211,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "dose": + Dose = (Hl7.Fhir.Model.DataType)value; + return this; + case "rate": + Rate = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -624,6 +643,55 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "text": + TextElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "additionalInstruction": + AdditionalInstruction = (List)value; + return this; + case "patientInstruction": + PatientInstructionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "timing": + Timing = (Hl7.Fhir.Model.Timing)value; + return this; + case "asNeeded": + AsNeeded = (Hl7.Fhir.Model.DataType)value; + return this; + case "site": + Site = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "route": + Route = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "method": + Method = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "doseAndRate": + DoseAndRate = (List)value; + return this; + case "maxDosePerPeriod": + MaxDosePerPeriod = (Hl7.Fhir.Model.Ratio)value; + return this; + case "maxDosePerAdministration": + MaxDosePerAdministration = (Hl7.Fhir.Model.Quantity)value; + return this; + case "maxDosePerLifetime": + MaxDosePerLifetime = (Hl7.Fhir.Model.Quantity)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/Duration.cs b/src/Hl7.Fhir.R4/Model/Generated/Duration.cs index 819912884b..a7076554b4 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/Duration.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/Duration.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; diff --git a/src/Hl7.Fhir.R4/Model/Generated/EffectEvidenceSynthesis.cs b/src/Hl7.Fhir.R4/Model/Generated/EffectEvidenceSynthesis.cs index 0279957d3b..de32351dce 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/EffectEvidenceSynthesis.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/EffectEvidenceSynthesis.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -282,6 +282,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "numberOfStudies": + NumberOfStudiesElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "numberOfParticipants": + NumberOfParticipantsElement = (Hl7.Fhir.Model.Integer)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -502,6 +521,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "exposureState": + ExposureStateElement = (Code)value; + return this; + case "variantState": + VariantState = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "riskEvidenceSynthesis": + RiskEvidenceSynthesis = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -763,6 +804,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "variantState": + VariantState = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "value": + ValueElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "unitOfMeasure": + UnitOfMeasure = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "precisionEstimate": + PrecisionEstimate = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -999,6 +1068,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "level": + LevelElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "from": + FromElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "to": + ToElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1161,6 +1252,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "rating": + Rating = (List)value; + return this; + case "note": + Note = (List)value; + return this; + case "certaintySubcomponent": + CertaintySubcomponent = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1322,6 +1432,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "rating": + Rating = (List)value; + return this; + case "note": + Note = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2325,6 +2454,115 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "note": + Note = (List)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "approvalDate": + ApprovalDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "lastReviewDate": + LastReviewDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "effectivePeriod": + EffectivePeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "topic": + Topic = (List)value; + return this; + case "author": + Author = (List)value; + return this; + case "editor": + Editor = (List)value; + return this; + case "reviewer": + Reviewer = (List)value; + return this; + case "endorser": + Endorser = (List)value; + return this; + case "relatedArtifact": + RelatedArtifact = (List)value; + return this; + case "synthesisType": + SynthesisType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "studyType": + StudyType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "population": + Population = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "exposure": + Exposure = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "exposureAlternative": + ExposureAlternative = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "outcome": + Outcome = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "sampleSize": + SampleSize = (Hl7.Fhir.Model.EffectEvidenceSynthesis.SampleSizeComponent)value; + return this; + case "resultsByExposure": + ResultsByExposure = (List)value; + return this; + case "effectEstimate": + EffectEstimate = (List)value; + return this; + case "certainty": + Certainty = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/Encounter.cs b/src/Hl7.Fhir.R4/Model/Generated/Encounter.cs index ed320bba0b..6fdc9dbbbc 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/Encounter.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/Encounter.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -308,6 +308,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "status": + StatusElement = (Code)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -446,6 +462,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "class": + Class = (Hl7.Fhir.Model.Coding)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -606,6 +638,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (List)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "individual": + Individual = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -782,6 +833,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "condition": + Condition = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "use": + Use = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "rank": + RankElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1079,6 +1149,43 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "preAdmissionIdentifier": + PreAdmissionIdentifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "origin": + Origin = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "admitSource": + AdmitSource = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "reAdmission": + ReAdmission = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "dietPreference": + DietPreference = (List)value; + return this; + case "specialCourtesy": + SpecialCourtesy = (List)value; + return this; + case "specialArrangement": + SpecialArrangement = (List)value; + return this; + case "destination": + Destination = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "dischargeDisposition": + DischargeDisposition = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1288,6 +1395,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "location": + Location = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "physicalType": + PhysicalType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1910,6 +2039,85 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "statusHistory": + StatusHistory = (List)value; + return this; + case "class": + Class = (Hl7.Fhir.Model.Coding)value; + return this; + case "classHistory": + ClassHistory = (List)value; + return this; + case "type": + Type = (List)value; + return this; + case "serviceType": + ServiceType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "priority": + Priority = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "episodeOfCare": + EpisodeOfCare = (List)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "participant": + Participant = (List)value; + return this; + case "appointment": + Appointment = (List)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "length": + Length = (Hl7.Fhir.Model.Duration)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "reasonReference": + ReasonReference = (List)value; + return this; + case "diagnosis": + Diagnosis = (List)value; + return this; + case "account": + Account = (List)value; + return this; + case "hospitalization": + Hospitalization = (Hl7.Fhir.Model.Encounter.HospitalizationComponent)value; + return this; + case "location": + Location = (List)value; + return this; + case "serviceProvider": + ServiceProvider = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "partOf": + PartOf = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/Endpoint.cs b/src/Hl7.Fhir.R4/Model/Generated/Endpoint.cs index 6831176e2a..caa5813a83 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/Endpoint.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/Endpoint.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -510,6 +510,49 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "connectionType": + ConnectionType = (Hl7.Fhir.Model.Coding)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "managingOrganization": + ManagingOrganization = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "payloadType": + PayloadType = (List)value; + return this; + case "payloadMimeType": + PayloadMimeTypeElement = (List)value; + return this; + case "address": + AddressElement = (Hl7.Fhir.Model.FhirUrl)value; + return this; + case "header": + HeaderElement = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/EnrollmentRequest.cs b/src/Hl7.Fhir.R4/Model/Generated/EnrollmentRequest.cs index e3b29abdb1..bd95b76a73 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/EnrollmentRequest.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/EnrollmentRequest.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -322,6 +322,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "created": + CreatedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "insurer": + Insurer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "provider": + Provider = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "candidate": + Candidate = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "coverage": + Coverage = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/EnrollmentResponse.cs b/src/Hl7.Fhir.R4/Model/Generated/EnrollmentResponse.cs index 2eb0d0ac2f..2e19ba6220 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/EnrollmentResponse.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/EnrollmentResponse.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -379,6 +379,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "request": + Request = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "outcome": + OutcomeElement = (Code)value; + return this; + case "disposition": + DispositionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "created": + CreatedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "organization": + Organization = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "requestProvider": + RequestProvider = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/EpisodeOfCare.cs b/src/Hl7.Fhir.R4/Model/Generated/EpisodeOfCare.cs index c479c36051..ae0e326d4c 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/EpisodeOfCare.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/EpisodeOfCare.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -259,6 +259,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "status": + StatusElement = (Code)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -434,6 +450,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "condition": + Condition = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "role": + Role = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "rank": + RankElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -810,6 +845,52 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "statusHistory": + StatusHistory = (List)value; + return this; + case "type": + Type = (List)value; + return this; + case "diagnosis": + Diagnosis = (List)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "managingOrganization": + ManagingOrganization = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "referralRequest": + ReferralRequest = (List)value; + return this; + case "careManager": + CareManager = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "team": + Team = (List)value; + return this; + case "account": + Account = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/EventDefinition.cs b/src/Hl7.Fhir.R4/Model/Generated/EventDefinition.cs index c139065ac5..aafe53f88e 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/EventDefinition.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/EventDefinition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -1006,6 +1006,100 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "subtitle": + SubtitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.DataType)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "usage": + UsageElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "approvalDate": + ApprovalDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "lastReviewDate": + LastReviewDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "effectivePeriod": + EffectivePeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "topic": + Topic = (List)value; + return this; + case "author": + Author = (List)value; + return this; + case "editor": + Editor = (List)value; + return this; + case "reviewer": + Reviewer = (List)value; + return this; + case "endorser": + Endorser = (List)value; + return this; + case "relatedArtifact": + RelatedArtifact = (List)value; + return this; + case "trigger": + Trigger = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/Evidence.cs b/src/Hl7.Fhir.R4/Model/Generated/Evidence.cs index 3a415edb80..999cd0bb5c 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/Evidence.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/Evidence.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -975,6 +975,100 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "shortTitle": + ShortTitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "subtitle": + SubtitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "note": + Note = (List)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "approvalDate": + ApprovalDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "lastReviewDate": + LastReviewDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "effectivePeriod": + EffectivePeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "topic": + Topic = (List)value; + return this; + case "author": + Author = (List)value; + return this; + case "editor": + Editor = (List)value; + return this; + case "reviewer": + Reviewer = (List)value; + return this; + case "endorser": + Endorser = (List)value; + return this; + case "relatedArtifact": + RelatedArtifact = (List)value; + return this; + case "exposureBackground": + ExposureBackground = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "exposureVariant": + ExposureVariant = (List)value; + return this; + case "outcome": + Outcome = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/EvidenceVariable.cs b/src/Hl7.Fhir.R4/Model/Generated/EvidenceVariable.cs index 2844a1faf6..6aa759db18 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/EvidenceVariable.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/EvidenceVariable.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -355,6 +355,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "definition": + Definition = (Hl7.Fhir.Model.DataType)value; + return this; + case "usageContext": + UsageContext = (List)value; + return this; + case "exclude": + ExcludeElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "participantEffective": + ParticipantEffective = (Hl7.Fhir.Model.DataType)value; + return this; + case "timeFromStart": + TimeFromStart = (Hl7.Fhir.Model.Duration)value; + return this; + case "groupMeasure": + GroupMeasureElement = (Code)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1276,6 +1307,97 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "shortTitle": + ShortTitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "subtitle": + SubtitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "note": + Note = (List)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "approvalDate": + ApprovalDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "lastReviewDate": + LastReviewDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "effectivePeriod": + EffectivePeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "topic": + Topic = (List)value; + return this; + case "author": + Author = (List)value; + return this; + case "editor": + Editor = (List)value; + return this; + case "reviewer": + Reviewer = (List)value; + return this; + case "endorser": + Endorser = (List)value; + return this; + case "relatedArtifact": + RelatedArtifact = (List)value; + return this; + case "type": + TypeElement = (Code)value; + return this; + case "characteristic": + Characteristic = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/ExampleScenario.cs b/src/Hl7.Fhir.R4/Model/Generated/ExampleScenario.cs index a454568fe5..1e30b81548 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/ExampleScenario.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/ExampleScenario.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -319,6 +319,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "actorId": + ActorIdElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "type": + TypeElement = (Code)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -615,6 +637,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "resourceId": + ResourceIdElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "resourceType": + ResourceTypeElement = (Code)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "version": + Version = (List)value; + return this; + case "containedInstance": + ContainedInstance = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -789,6 +839,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "versionId": + VersionIdElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -961,6 +1027,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "resourceId": + ResourceIdElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "versionId": + VersionIdElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1230,6 +1312,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "preConditions": + PreConditionsElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "postConditions": + PostConditionsElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "step": + Step = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1427,6 +1534,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "process": + Process = (List)value; + return this; + case "pause": + PauseElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "operation": + Operation = (Hl7.Fhir.Model.ExampleScenario.OperationComponent)value; + return this; + case "alternative": + Alternative = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1874,6 +2003,46 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "number": + NumberElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "type": + TypeElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "initiator": + InitiatorElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "receiver": + ReceiverElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "initiatorActive": + InitiatorActiveElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "receiverActive": + ReceiverActiveElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "request": + Request = (Hl7.Fhir.Model.ExampleScenario.ContainedInstanceComponent)value; + return this; + case "response": + Response = (Hl7.Fhir.Model.ExampleScenario.ContainedInstanceComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2076,6 +2245,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "step": + Step = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2704,6 +2892,67 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "actor": + Actor = (List)value; + return this; + case "instance": + Instance = (List)value; + return this; + case "process": + Process = (List)value; + return this; + case "workflow": + WorkflowElement = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/ExplanationOfBenefit.cs b/src/Hl7.Fhir.R4/Model/Generated/ExplanationOfBenefit.cs index b0a61008f9..f92c41fdd7 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/ExplanationOfBenefit.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/ExplanationOfBenefit.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -244,6 +244,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "claim": + Claim = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "relationship": + Relationship = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "reference": + Reference = (Hl7.Fhir.Model.Identifier)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -384,6 +403,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "party": + Party = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -624,6 +659,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "provider": + Provider = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "responsible": + ResponsibleElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "role": + Role = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "qualification": + Qualification = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -875,6 +935,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "timing": + Timing = (Hl7.Fhir.Model.DataType)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + case "reason": + Reason = (Hl7.Fhir.Model.Coding)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1105,6 +1193,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "diagnosis": + Diagnosis = (Hl7.Fhir.Model.DataType)value; + return this; + case "type": + Type = (List)value; + return this; + case "onAdmission": + OnAdmission = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "packageCode": + PackageCode = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1353,6 +1466,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "type": + Type = (List)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "procedure": + Procedure = (Hl7.Fhir.Model.DataType)value; + return this; + case "udi": + Udi = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1554,6 +1692,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "focal": + FocalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "coverage": + Coverage = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "preAuthRef": + PreAuthRefElement = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1733,6 +1890,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "date": + DateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "location": + Location = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2467,6 +2643,85 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "careTeamSequence": + CareTeamSequenceElement = (List)value; + return this; + case "diagnosisSequence": + DiagnosisSequenceElement = (List)value; + return this; + case "procedureSequence": + ProcedureSequenceElement = (List)value; + return this; + case "informationSequence": + InformationSequenceElement = (List)value; + return this; + case "revenue": + Revenue = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "productOrService": + ProductOrService = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "modifier": + Modifier = (List)value; + return this; + case "programCode": + ProgramCode = (List)value; + return this; + case "serviced": + Serviced = (Hl7.Fhir.Model.DataType)value; + return this; + case "location": + Location = (Hl7.Fhir.Model.DataType)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "unitPrice": + UnitPrice = (Hl7.Fhir.Model.Money)value; + return this; + case "factor": + FactorElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "net": + Net = (Hl7.Fhir.Model.Money)value; + return this; + case "udi": + Udi = (List)value; + return this; + case "bodySite": + BodySite = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subSite": + SubSite = (List)value; + return this; + case "encounter": + Encounter = (List)value; + return this; + case "noteNumber": + NoteNumberElement = (List)value; + return this; + case "adjudication": + Adjudication = (List)value; + return this; + case "detail": + Detail = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2686,6 +2941,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "reason": + Reason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "amount": + Amount = (Hl7.Fhir.Model.Money)value; + return this; + case "value": + ValueElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3144,6 +3421,58 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "revenue": + Revenue = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "productOrService": + ProductOrService = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "modifier": + Modifier = (List)value; + return this; + case "programCode": + ProgramCode = (List)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "unitPrice": + UnitPrice = (Hl7.Fhir.Model.Money)value; + return this; + case "factor": + FactorElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "net": + Net = (Hl7.Fhir.Model.Money)value; + return this; + case "udi": + Udi = (List)value; + return this; + case "noteNumber": + NoteNumberElement = (List)value; + return this; + case "adjudication": + Adjudication = (List)value; + return this; + case "subDetail": + SubDetail = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3590,6 +3919,55 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "revenue": + Revenue = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "productOrService": + ProductOrService = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "modifier": + Modifier = (List)value; + return this; + case "programCode": + ProgramCode = (List)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "unitPrice": + UnitPrice = (Hl7.Fhir.Model.Money)value; + return this; + case "factor": + FactorElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "net": + Net = (Hl7.Fhir.Model.Money)value; + return this; + case "udi": + Udi = (List)value; + return this; + case "noteNumber": + NoteNumberElement = (List)value; + return this; + case "adjudication": + Adjudication = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -4186,6 +4564,70 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "itemSequence": + ItemSequenceElement = (List)value; + return this; + case "detailSequence": + DetailSequenceElement = (List)value; + return this; + case "subDetailSequence": + SubDetailSequenceElement = (List)value; + return this; + case "provider": + Provider = (List)value; + return this; + case "productOrService": + ProductOrService = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "modifier": + Modifier = (List)value; + return this; + case "programCode": + ProgramCode = (List)value; + return this; + case "serviced": + Serviced = (Hl7.Fhir.Model.DataType)value; + return this; + case "location": + Location = (Hl7.Fhir.Model.DataType)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "unitPrice": + UnitPrice = (Hl7.Fhir.Model.Money)value; + return this; + case "factor": + FactorElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "net": + Net = (Hl7.Fhir.Model.Money)value; + return this; + case "bodySite": + BodySite = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subSite": + SubSite = (List)value; + return this; + case "noteNumber": + NoteNumberElement = (List)value; + return this; + case "adjudication": + Adjudication = (List)value; + return this; + case "detail": + Detail = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -4527,6 +4969,43 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "productOrService": + ProductOrService = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "modifier": + Modifier = (List)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "unitPrice": + UnitPrice = (Hl7.Fhir.Model.Money)value; + return this; + case "factor": + FactorElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "net": + Net = (Hl7.Fhir.Model.Money)value; + return this; + case "noteNumber": + NoteNumberElement = (List)value; + return this; + case "adjudication": + Adjudication = (List)value; + return this; + case "subDetail": + SubDetail = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -4837,6 +5316,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "productOrService": + ProductOrService = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "modifier": + Modifier = (List)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "unitPrice": + UnitPrice = (Hl7.Fhir.Model.Money)value; + return this; + case "factor": + FactorElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "net": + Net = (Hl7.Fhir.Model.Money)value; + return this; + case "noteNumber": + NoteNumberElement = (List)value; + return this; + case "adjudication": + Adjudication = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -4982,6 +5495,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "amount": + Amount = (Hl7.Fhir.Model.Money)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -5221,6 +5750,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "adjustment": + Adjustment = (Hl7.Fhir.Model.Money)value; + return this; + case "adjustmentReason": + AdjustmentReason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "amount": + Amount = (Hl7.Fhir.Model.Money)value; + return this; + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -5459,6 +6016,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "number": + NumberElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "type": + TypeElement = (Code)value; + return this; + case "text": + TextElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "language": + Language = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -5779,6 +6358,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "excluded": + ExcludedElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "network": + Network = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "unit": + Unit = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "term": + Term = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "financial": + Financial = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -5947,6 +6560,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "allowed": + Allowed = (Hl7.Fhir.Model.DataType)value; + return this; + case "used": + Used = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -7113,6 +7745,145 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subType": + SubType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "use": + UseElement = (Code)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "billablePeriod": + BillablePeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "created": + CreatedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "enterer": + Enterer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "insurer": + Insurer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "provider": + Provider = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "priority": + Priority = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "fundsReserveRequested": + FundsReserveRequested = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "fundsReserve": + FundsReserve = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "related": + Related = (List)value; + return this; + case "prescription": + Prescription = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "originalPrescription": + OriginalPrescription = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "payee": + Payee = (Hl7.Fhir.Model.ExplanationOfBenefit.PayeeComponent)value; + return this; + case "referral": + Referral = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "facility": + Facility = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "claim": + Claim = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "claimResponse": + ClaimResponse = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "outcome": + OutcomeElement = (Code)value; + return this; + case "disposition": + DispositionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "preAuthRef": + PreAuthRefElement = (List)value; + return this; + case "preAuthRefPeriod": + PreAuthRefPeriod = (List)value; + return this; + case "careTeam": + CareTeam = (List)value; + return this; + case "supportingInfo": + SupportingInfo = (List)value; + return this; + case "diagnosis": + Diagnosis = (List)value; + return this; + case "procedure": + Procedure = (List)value; + return this; + case "precedence": + PrecedenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "insurance": + Insurance = (List)value; + return this; + case "accident": + Accident = (Hl7.Fhir.Model.ExplanationOfBenefit.AccidentComponent)value; + return this; + case "item": + Item = (List)value; + return this; + case "addItem": + AddItem = (List)value; + return this; + case "adjudication": + Adjudication = (List)value; + return this; + case "total": + Total = (List)value; + return this; + case "payment": + Payment = (Hl7.Fhir.Model.ExplanationOfBenefit.PaymentComponent)value; + return this; + case "formCode": + FormCode = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "form": + Form = (Hl7.Fhir.Model.Attachment)value; + return this; + case "processNote": + ProcessNote = (List)value; + return this; + case "benefitPeriod": + BenefitPeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "benefitBalance": + BenefitBalance = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/Expression.cs b/src/Hl7.Fhir.R4/Model/Generated/Expression.cs index 0a99e8cfeb..b8a4edb77a 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/Expression.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/Expression.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -323,6 +323,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.Id)value; + return this; + case "language": + LanguageElement = (Hl7.Fhir.Model.Code)value; + return this; + case "expression": + ExpressionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "reference": + ReferenceElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/FamilyMemberHistory.cs b/src/Hl7.Fhir.R4/Model/Generated/FamilyMemberHistory.cs index 893db25dbf..6dbd7eab60 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/FamilyMemberHistory.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/FamilyMemberHistory.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -306,6 +306,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "outcome": + Outcome = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "contributedToDeath": + ContributedToDeathElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "onset": + Onset = (Hl7.Fhir.Model.DataType)value; + return this; + case "note": + Note = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -899,6 +924,70 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "instantiatesCanonical": + InstantiatesCanonicalElement = (List)value; + return this; + case "instantiatesUri": + InstantiatesUriElement = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "dataAbsentReason": + DataAbsentReason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "relationship": + Relationship = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "sex": + Sex = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "born": + Born = (Hl7.Fhir.Model.DataType)value; + return this; + case "age": + Age = (Hl7.Fhir.Model.DataType)value; + return this; + case "estimatedAge": + EstimatedAgeElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "deceased": + Deceased = (Hl7.Fhir.Model.DataType)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "reasonReference": + ReasonReference = (List)value; + return this; + case "note": + Note = (List)value; + return this; + case "condition": + Condition = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/Flag.cs b/src/Hl7.Fhir.R4/Model/Generated/Flag.cs index c56ae9eb8c..874d05b7e6 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/Flag.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/Flag.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -360,6 +360,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "category": + Category = (List)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "author": + Author = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/Goal.cs b/src/Hl7.Fhir.R4/Model/Generated/Goal.cs index 92249bd2bf..68d2c0ff87 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/Goal.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/Goal.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -278,6 +278,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "measure": + Measure = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "detail": + Detail = (Hl7.Fhir.Model.DataType)value; + return this; + case "due": + Due = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -778,6 +797,64 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "lifecycleStatus": + LifecycleStatusElement = (Code)value; + return this; + case "achievementStatus": + AchievementStatus = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "category": + Category = (List)value; + return this; + case "priority": + Priority = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "description": + Description = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "start": + Start = (Hl7.Fhir.Model.DataType)value; + return this; + case "target": + Target = (List)value; + return this; + case "statusDate": + StatusDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "statusReason": + StatusReasonElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "expressedBy": + ExpressedBy = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "addresses": + Addresses = (List)value; + return this; + case "note": + Note = (List)value; + return this; + case "outcomeCode": + OutcomeCode = (List)value; + return this; + case "outcomeReference": + OutcomeReference = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/GraphDefinition.cs b/src/Hl7.Fhir.R4/Model/Generated/GraphDefinition.cs index 6e16c07920..7aab062b3a 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/GraphDefinition.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/GraphDefinition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -413,6 +413,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "path": + PathElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "sliceName": + SliceNameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "min": + MinElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "max": + MaxElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "target": + Target = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -671,6 +699,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "params": + ParamsElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "profile": + ProfileElement = (Hl7.Fhir.Model.Canonical)value; + return this; + case "compartment": + Compartment = (List)value; + return this; + case "link": + Link = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -968,6 +1021,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "use": + UseElement = (Code)value; + return this; + case "code": + CodeElement = (Code)value; + return this; + case "rule": + RuleElement = (Code)value; + return this; + case "expression": + ExpressionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1572,6 +1650,61 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "start": + StartElement = (Code)value; + return this; + case "profile": + ProfileElement = (Hl7.Fhir.Model.Canonical)value; + return this; + case "link": + Link = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/Group.cs b/src/Hl7.Fhir.R4/Model/Generated/Group.cs index e0901cb7ae..cda11a4647 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/Group.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/Group.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -300,6 +300,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + case "exclude": + ExcludeElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -479,6 +501,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "entity": + Entity = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "inactive": + InactiveElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -871,6 +912,46 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "active": + ActiveElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "type": + TypeElement = (Code)value; + return this; + case "actual": + ActualElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "quantity": + QuantityElement = (Hl7.Fhir.Model.UnsignedInt)value; + return this; + case "managingEntity": + ManagingEntity = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "characteristic": + Characteristic = (List)value; + return this; + case "member": + Member = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/GuidanceResponse.cs b/src/Hl7.Fhir.R4/Model/Generated/GuidanceResponse.cs index 59e7bdebbb..c255909672 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/GuidanceResponse.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/GuidanceResponse.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -554,6 +554,61 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "requestIdentifier": + RequestIdentifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "module": + Module = (Hl7.Fhir.Model.DataType)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "occurrenceDateTime": + OccurrenceDateTimeElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "performer": + Performer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "reasonReference": + ReasonReference = (List)value; + return this; + case "note": + Note = (List)value; + return this; + case "evaluationMessage": + EvaluationMessage = (List)value; + return this; + case "outputParameters": + OutputParameters = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "result": + Result = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "dataRequirement": + DataRequirement = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/HealthcareService.cs b/src/Hl7.Fhir.R4/Model/Generated/HealthcareService.cs index f4ec1110fb..1c6715f9ec 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/HealthcareService.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/HealthcareService.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -201,6 +201,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "comment": + CommentElement = (Hl7.Fhir.Model.Markdown)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -454,6 +470,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "daysOfWeek": + DaysOfWeekElement = (List>)value; + return this; + case "allDay": + AllDayElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "availableStartTime": + AvailableStartTimeElement = (Hl7.Fhir.Model.Time)value; + return this; + case "availableEndTime": + AvailableEndTimeElement = (Hl7.Fhir.Model.Time)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -610,6 +648,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "during": + During = (Hl7.Fhir.Model.Period)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1335,6 +1389,88 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "active": + ActiveElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "providedBy": + ProvidedBy = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "category": + Category = (List)value; + return this; + case "type": + Type = (List)value; + return this; + case "specialty": + Specialty = (List)value; + return this; + case "location": + Location = (List)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "comment": + CommentElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "extraDetails": + ExtraDetailsElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "photo": + Photo = (Hl7.Fhir.Model.Attachment)value; + return this; + case "telecom": + Telecom = (List)value; + return this; + case "coverageArea": + CoverageArea = (List)value; + return this; + case "serviceProvisionCode": + ServiceProvisionCode = (List)value; + return this; + case "eligibility": + Eligibility = (List)value; + return this; + case "program": + Program = (List)value; + return this; + case "characteristic": + Characteristic = (List)value; + return this; + case "communication": + Communication = (List)value; + return this; + case "referralMethod": + ReferralMethod = (List)value; + return this; + case "appointmentRequired": + AppointmentRequiredElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "availableTime": + AvailableTime = (List)value; + return this; + case "notAvailable": + NotAvailable = (List)value; + return this; + case "availabilityExceptions": + AvailabilityExceptionsElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "endpoint": + Endpoint = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/HumanName.cs b/src/Hl7.Fhir.R4/Model/Generated/HumanName.cs index 93f6984f6f..62267f186d 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/HumanName.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/HumanName.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -439,6 +439,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "use": + UseElement = (Code)value; + return this; + case "text": + TextElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "family": + FamilyElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "given": + GivenElement = (List)value; + return this; + case "prefix": + PrefixElement = (List)value; + return this; + case "suffix": + SuffixElement = (List)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/ImagingStudy.cs b/src/Hl7.Fhir.R4/Model/Generated/ImagingStudy.cs index a172fa0628..64223e9f7b 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/ImagingStudy.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/ImagingStudy.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -538,6 +538,52 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "uid": + UidElement = (Hl7.Fhir.Model.Id)value; + return this; + case "number": + NumberElement = (Hl7.Fhir.Model.UnsignedInt)value; + return this; + case "modality": + Modality = (Hl7.Fhir.Model.Coding)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "numberOfInstances": + NumberOfInstancesElement = (Hl7.Fhir.Model.UnsignedInt)value; + return this; + case "endpoint": + Endpoint = (List)value; + return this; + case "bodySite": + BodySite = (Hl7.Fhir.Model.Coding)value; + return this; + case "laterality": + Laterality = (Hl7.Fhir.Model.Coding)value; + return this; + case "specimen": + Specimen = (List)value; + return this; + case "started": + StartedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "performer": + Performer = (List)value; + return this; + case "instance": + Instance = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -688,6 +734,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "function": + Function = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "actor": + Actor = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -922,6 +984,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "uid": + UidElement = (Hl7.Fhir.Model.Id)value; + return this; + case "sopClass": + SopClass = (Hl7.Fhir.Model.Coding)value; + return this; + case "number": + NumberElement = (Hl7.Fhir.Model.UnsignedInt)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1547,6 +1631,76 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "modality": + Modality = (List)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "started": + StartedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "referrer": + Referrer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "interpreter": + Interpreter = (List)value; + return this; + case "endpoint": + Endpoint = (List)value; + return this; + case "numberOfSeries": + NumberOfSeriesElement = (Hl7.Fhir.Model.UnsignedInt)value; + return this; + case "numberOfInstances": + NumberOfInstancesElement = (Hl7.Fhir.Model.UnsignedInt)value; + return this; + case "procedureReference": + ProcedureReference = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "procedureCode": + ProcedureCode = (List)value; + return this; + case "location": + Location = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "reasonReference": + ReasonReference = (List)value; + return this; + case "note": + Note = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "series": + Series = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/Immunization.cs b/src/Hl7.Fhir.R4/Model/Generated/Immunization.cs index ac23e49837..a196c20834 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/Immunization.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/Immunization.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -217,6 +217,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "function": + Function = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "actor": + Actor = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -466,6 +482,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "documentType": + DocumentTypeElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "reference": + ReferenceElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "publicationDate": + PublicationDateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "presentationDate": + PresentationDateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -663,6 +701,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "detail": + Detail = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "reported": + ReportedElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -889,6 +946,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "series": + SeriesElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "authority": + Authority = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "targetDisease": + TargetDisease = (List)value; + return this; + case "doseNumber": + DoseNumber = (Hl7.Fhir.Model.DataType)value; + return this; + case "seriesDoses": + SeriesDoses = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1706,6 +1788,100 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "statusReason": + StatusReason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "vaccineCode": + VaccineCode = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "occurrence": + Occurrence = (Hl7.Fhir.Model.DataType)value; + return this; + case "recorded": + RecordedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "primarySource": + PrimarySourceElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "reportOrigin": + ReportOrigin = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "location": + Location = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "manufacturer": + Manufacturer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "lotNumber": + LotNumberElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "expirationDate": + ExpirationDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "site": + Site = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "route": + Route = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "doseQuantity": + DoseQuantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "performer": + Performer = (List)value; + return this; + case "note": + Note = (List)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "reasonReference": + ReasonReference = (List)value; + return this; + case "isSubpotent": + IsSubpotentElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "subpotentReason": + SubpotentReason = (List)value; + return this; + case "education": + Education = (List)value; + return this; + case "programEligibility": + ProgramEligibility = (List)value; + return this; + case "fundingSource": + FundingSource = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "reaction": + Reaction = (List)value; + return this; + case "protocolApplied": + ProtocolApplied = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/ImmunizationEvaluation.cs b/src/Hl7.Fhir.R4/Model/Generated/ImmunizationEvaluation.cs index 0b1ab36a2c..7d787ee7ee 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/ImmunizationEvaluation.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/ImmunizationEvaluation.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -517,6 +517,55 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "authority": + Authority = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "targetDisease": + TargetDisease = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "immunizationEvent": + ImmunizationEvent = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "doseStatus": + DoseStatus = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "doseStatusReason": + DoseStatusReason = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "series": + SeriesElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "doseNumber": + DoseNumber = (Hl7.Fhir.Model.DataType)value; + return this; + case "seriesDoses": + SeriesDoses = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/ImmunizationRecommendation.cs b/src/Hl7.Fhir.R4/Model/Generated/ImmunizationRecommendation.cs index e6b2be79be..fcb4ad7acc 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/ImmunizationRecommendation.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/ImmunizationRecommendation.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -448,6 +448,52 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "vaccineCode": + VaccineCode = (List)value; + return this; + case "targetDisease": + TargetDisease = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "contraindicatedVaccineCode": + ContraindicatedVaccineCode = (List)value; + return this; + case "forecastStatus": + ForecastStatus = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "forecastReason": + ForecastReason = (List)value; + return this; + case "dateCriterion": + DateCriterion = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "series": + SeriesElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "doseNumber": + DoseNumber = (Hl7.Fhir.Model.DataType)value; + return this; + case "seriesDoses": + SeriesDoses = (Hl7.Fhir.Model.DataType)value; + return this; + case "supportingImmunization": + SupportingImmunization = (List)value; + return this; + case "supportingPatientInformation": + SupportingPatientInformation = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -614,6 +660,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "value": + ValueElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -823,6 +885,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "authority": + Authority = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "recommendation": + Recommendation = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/ImplementationGuide.cs b/src/Hl7.Fhir.R4/Model/Generated/ImplementationGuide.cs index 09c0cd71bc..1e86c06d53 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/ImplementationGuide.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/ImplementationGuide.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -2451,6 +2451,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "uri": + UriElement = (Hl7.Fhir.Model.Canonical)value; + return this; + case "packageId": + PackageIdElement = (Hl7.Fhir.Model.Id)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2628,6 +2647,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "profile": + ProfileElement = (Hl7.Fhir.Model.Canonical)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2831,6 +2866,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "grouping": + Grouping = (List)value; + return this; + case "resource": + Resource = (List)value; + return this; + case "page": + Page = (Hl7.Fhir.Model.ImplementationGuide.PageComponent)value; + return this; + case "parameter": + Parameter = (List)value; + return this; + case "template": + Template = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3007,6 +3067,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3306,6 +3382,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "reference": + Reference = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "fhirVersion": + FhirVersionElement = (List>)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "example": + Example = (Hl7.Fhir.Model.DataType)value; + return this; + case "groupingId": + GroupingIdElement = (Hl7.Fhir.Model.Id)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3533,6 +3637,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + Name = (Hl7.Fhir.Model.DataType)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "generation": + GenerationElement = (Code)value; + return this; + case "page": + Page = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3707,6 +3833,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + CodeElement = (Code)value; + return this; + case "value": + ValueElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3916,6 +4058,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + CodeElement = (Hl7.Fhir.Model.Code)value; + return this; + case "source": + SourceElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "scope": + ScopeElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -4173,6 +4334,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "rendering": + RenderingElement = (Hl7.Fhir.Model.FhirUrl)value; + return this; + case "resource": + Resource = (List)value; + return this; + case "page": + Page = (List)value; + return this; + case "image": + ImageElement = (List)value; + return this; + case "other": + OtherElement = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -4355,6 +4541,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "reference": + Reference = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "example": + Example = (Hl7.Fhir.Model.DataType)value; + return this; + case "relativePath": + RelativePathElement = (Hl7.Fhir.Model.FhirUrl)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -4568,6 +4773,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "anchor": + AnchorElement = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -5316,6 +5540,76 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "packageId": + PackageIdElement = (Hl7.Fhir.Model.Id)value; + return this; + case "license": + LicenseElement = (Code)value; + return this; + case "fhirVersion": + FhirVersionElement = (List>)value; + return this; + case "dependsOn": + DependsOn = (List)value; + return this; + case "global": + Global = (List)value; + return this; + case "definition": + Definition = (Hl7.Fhir.Model.ImplementationGuide.DefinitionComponent)value; + return this; + case "manifest": + Manifest = (Hl7.Fhir.Model.ImplementationGuide.ManifestComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/InsurancePlan.cs b/src/Hl7.Fhir.R4/Model/Generated/InsurancePlan.cs index f97e1f4864..fdf99df9ed 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/InsurancePlan.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/InsurancePlan.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -255,6 +255,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "purpose": + Purpose = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "name": + Name = (Hl7.Fhir.Model.HumanName)value; + return this; + case "telecom": + Telecom = (List)value; + return this; + case "address": + Address = (Hl7.Fhir.Model.Address)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -418,6 +440,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "network": + Network = (List)value; + return this; + case "benefit": + Benefit = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -595,6 +636,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "requirement": + RequirementElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "limit": + Limit = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -731,6 +791,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "value": + Value = (Hl7.Fhir.Model.Quantity)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -959,6 +1035,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "coverageArea": + CoverageArea = (List)value; + return this; + case "network": + Network = (List)value; + return this; + case "generalCost": + GeneralCost = (List)value; + return this; + case "specificCost": + SpecificCost = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1176,6 +1280,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "groupSize": + GroupSizeElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "cost": + Cost = (Hl7.Fhir.Model.Money)value; + return this; + case "comment": + CommentElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1315,6 +1441,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "benefit": + Benefit = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1452,6 +1594,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "cost": + Cost = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1632,6 +1790,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "applicability": + Applicability = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "qualifiers": + Qualifiers = (List)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.Quantity)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2082,6 +2262,58 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "type": + Type = (List)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "alias": + AliasElement = (List)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "ownedBy": + OwnedBy = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "administeredBy": + AdministeredBy = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "coverageArea": + CoverageArea = (List)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "endpoint": + Endpoint = (List)value; + return this; + case "network": + Network = (List)value; + return this; + case "coverage": + Coverage = (List)value; + return this; + case "plan": + Plan = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/Invoice.cs b/src/Hl7.Fhir.R4/Model/Generated/Invoice.cs index 9b034ad34e..5d2910457d 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/Invoice.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/Invoice.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -228,6 +228,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "role": + Role = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "actor": + Actor = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -407,6 +423,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "chargeItem": + ChargeItem = (Hl7.Fhir.Model.DataType)value; + return this; + case "priceComponent": + PriceComponent = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -624,6 +659,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "factor": + FactorElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "amount": + Amount = (Hl7.Fhir.Model.Money)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1128,6 +1185,64 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "cancelledReason": + CancelledReasonElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "recipient": + Recipient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "participant": + Participant = (List)value; + return this; + case "issuer": + Issuer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "account": + Account = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "lineItem": + LineItem = (List)value; + return this; + case "totalPriceComponent": + TotalPriceComponent = (List)value; + return this; + case "totalNet": + TotalNet = (Hl7.Fhir.Model.Money)value; + return this; + case "totalGross": + TotalGross = (Hl7.Fhir.Model.Money)value; + return this; + case "paymentTerms": + PaymentTermsElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "note": + Note = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/Library.cs b/src/Hl7.Fhir.R4/Model/Generated/Library.cs index 0956570ad6..a1274b933a 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/Library.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/Library.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -1076,6 +1076,109 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "subtitle": + SubtitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.DataType)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "usage": + UsageElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "approvalDate": + ApprovalDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "lastReviewDate": + LastReviewDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "effectivePeriod": + EffectivePeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "topic": + Topic = (List)value; + return this; + case "author": + Author = (List)value; + return this; + case "editor": + Editor = (List)value; + return this; + case "reviewer": + Reviewer = (List)value; + return this; + case "endorser": + Endorser = (List)value; + return this; + case "relatedArtifact": + RelatedArtifact = (List)value; + return this; + case "parameter": + Parameter = (List)value; + return this; + case "dataRequirement": + DataRequirement = (List)value; + return this; + case "content": + Content = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/Linkage.cs b/src/Hl7.Fhir.R4/Model/Generated/Linkage.cs index 50b35adae9..72b40f4919 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/Linkage.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/Linkage.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -237,6 +237,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "resource": + Resource = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -397,6 +413,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "active": + ActiveElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "author": + Author = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "item": + Item = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/List.cs b/src/Hl7.Fhir.R4/Model/Generated/List.cs index aa21822b52..7e8e59148a 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/List.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/List.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -293,6 +293,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "flag": + Flag = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "deleted": + DeletedElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "item": + Item = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -739,6 +761,55 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "mode": + ModeElement = (Code)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "source": + Source = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "orderedBy": + OrderedBy = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "note": + Note = (List)value; + return this; + case "entry": + Entry = (List)value; + return this; + case "emptyReason": + EmptyReason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/Location.cs b/src/Hl7.Fhir.R4/Model/Generated/Location.cs index 4f9e458d2c..40d7d98893 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/Location.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/Location.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -312,6 +312,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "longitude": + LongitudeElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "latitude": + LatitudeElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "altitude": + AltitudeElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -566,6 +585,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "daysOfWeek": + DaysOfWeekElement = (List>)value; + return this; + case "allDay": + AllDayElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "openingTime": + OpeningTimeElement = (Hl7.Fhir.Model.Time)value; + return this; + case "closingTime": + ClosingTimeElement = (Hl7.Fhir.Model.Time)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1133,6 +1174,67 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "operationalStatus": + OperationalStatus = (Hl7.Fhir.Model.Coding)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "alias": + AliasElement = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "mode": + ModeElement = (Code)value; + return this; + case "type": + Type = (List)value; + return this; + case "telecom": + Telecom = (List)value; + return this; + case "address": + Address = (Hl7.Fhir.Model.Address)value; + return this; + case "physicalType": + PhysicalType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "position": + Position = (Hl7.Fhir.Model.Location.PositionComponent)value; + return this; + case "managingOrganization": + ManagingOrganization = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "partOf": + PartOf = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "hoursOfOperation": + HoursOfOperation = (List)value; + return this; + case "availabilityExceptions": + AvailabilityExceptionsElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "endpoint": + Endpoint = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/MarketingStatus.cs b/src/Hl7.Fhir.R4/Model/Generated/MarketingStatus.cs index cddabfb62f..c06c653929 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/MarketingStatus.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/MarketingStatus.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -249,6 +249,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "country": + Country = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "jurisdiction": + Jurisdiction = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "status": + Status = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "dateRange": + DateRange = (Hl7.Fhir.Model.Period)value; + return this; + case "restoreDate": + RestoreDateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/Measure.cs b/src/Hl7.Fhir.R4/Model/Generated/Measure.cs index e595accca0..ba76cef10a 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/Measure.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/Measure.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -247,6 +247,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "population": + Population = (List)value; + return this; + case "stratifier": + Stratifier = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -425,6 +447,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "criteria": + Criteria = (Hl7.Fhir.Model.Expression)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -622,6 +663,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "criteria": + Criteria = (Hl7.Fhir.Model.Expression)value; + return this; + case "component": + Component = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -800,6 +863,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "criteria": + Criteria = (Hl7.Fhir.Model.Expression)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1000,6 +1082,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "usage": + Usage = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "criteria": + Criteria = (Hl7.Fhir.Model.Expression)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2386,6 +2490,139 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "subtitle": + SubtitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.DataType)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "usage": + UsageElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "approvalDate": + ApprovalDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "lastReviewDate": + LastReviewDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "effectivePeriod": + EffectivePeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "topic": + Topic = (List)value; + return this; + case "author": + Author = (List)value; + return this; + case "editor": + Editor = (List)value; + return this; + case "reviewer": + Reviewer = (List)value; + return this; + case "endorser": + Endorser = (List)value; + return this; + case "relatedArtifact": + RelatedArtifact = (List)value; + return this; + case "library": + LibraryElement = (List)value; + return this; + case "disclaimer": + DisclaimerElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "scoring": + Scoring = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "compositeScoring": + CompositeScoring = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "type": + Type = (List)value; + return this; + case "riskAdjustment": + RiskAdjustmentElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "rateAggregation": + RateAggregationElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "rationale": + RationaleElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "clinicalRecommendationStatement": + ClinicalRecommendationStatementElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "improvementNotation": + ImprovementNotation = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "definition": + DefinitionElement = (List)value; + return this; + case "guidance": + GuidanceElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "group": + Group = (List)value; + return this; + case "supplementalData": + SupplementalData = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/MeasureReport.cs b/src/Hl7.Fhir.R4/Model/Generated/MeasureReport.cs index a6a1239bad..7a148c3813 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/MeasureReport.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/MeasureReport.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -291,6 +291,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "population": + Population = (List)value; + return this; + case "measureScore": + MeasureScore = (Hl7.Fhir.Model.Quantity)value; + return this; + case "stratifier": + Stratifier = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -470,6 +492,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "count": + CountElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "subjectResults": + SubjectResults = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -608,6 +649,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (List)value; + return this; + case "stratum": + Stratum = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -787,6 +844,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "value": + Value = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "component": + Component = (List)value; + return this; + case "population": + Population = (List)value; + return this; + case "measureScore": + MeasureScore = (Hl7.Fhir.Model.Quantity)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -926,6 +1005,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1103,6 +1198,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "count": + CountElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "subjectResults": + SubjectResults = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1503,6 +1617,49 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "type": + TypeElement = (Code)value; + return this; + case "measure": + MeasureElement = (Hl7.Fhir.Model.Canonical)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "reporter": + Reporter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "improvementNotation": + ImprovementNotation = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "group": + Group = (List)value; + return this; + case "evaluatedResource": + EvaluatedResource = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/Media.cs b/src/Hl7.Fhir.R4/Model/Generated/Media.cs index df5ce5dcb3..0d7577619f 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/Media.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/Media.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -741,6 +741,82 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "partOf": + PartOf = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "modality": + Modality = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "view": + View = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "created": + Created = (Hl7.Fhir.Model.DataType)value; + return this; + case "issued": + IssuedElement = (Hl7.Fhir.Model.Instant)value; + return this; + case "operator": + Operator = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "bodySite": + BodySite = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "deviceName": + DeviceNameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "device": + Device = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "height": + HeightElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "width": + WidthElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "frames": + FramesElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "duration": + DurationElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "content": + Content = (Hl7.Fhir.Model.Attachment)value; + return this; + case "note": + Note = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/Medication.cs b/src/Hl7.Fhir.R4/Model/Generated/Medication.cs index c370b44882..97e07ada14 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/Medication.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/Medication.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -257,6 +257,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "item": + Item = (Hl7.Fhir.Model.DataType)value; + return this; + case "isActive": + IsActiveElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "strength": + Strength = (Hl7.Fhir.Model.Ratio)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -429,6 +448,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "lotNumber": + LotNumberElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "expirationDate": + ExpirationDateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -704,6 +739,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "manufacturer": + Manufacturer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "form": + Form = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "amount": + Amount = (Hl7.Fhir.Model.Ratio)value; + return this; + case "ingredient": + Ingredient = (List)value; + return this; + case "batch": + Batch = (Hl7.Fhir.Model.Medication.BatchComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/MedicationAdministration.cs b/src/Hl7.Fhir.R4/Model/Generated/MedicationAdministration.cs index e79b017df8..cb6f284659 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/MedicationAdministration.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/MedicationAdministration.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -241,6 +241,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "function": + Function = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "actor": + Actor = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -483,6 +499,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "text": + TextElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "site": + Site = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "route": + Route = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "method": + Method = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "dose": + Dose = (Hl7.Fhir.Model.Quantity)value; + return this; + case "rate": + Rate = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1045,6 +1089,73 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "instantiates": + InstantiatesElement = (List)value; + return this; + case "partOf": + PartOf = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "statusReason": + StatusReason = (List)value; + return this; + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "medication": + Medication = (Hl7.Fhir.Model.DataType)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "context": + Context = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "supportingInformation": + SupportingInformation = (List)value; + return this; + case "effective": + Effective = (Hl7.Fhir.Model.DataType)value; + return this; + case "performer": + Performer = (List)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "reasonReference": + ReasonReference = (List)value; + return this; + case "request": + Request = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "device": + Device = (List)value; + return this; + case "note": + Note = (List)value; + return this; + case "dosage": + Dosage = (Hl7.Fhir.Model.MedicationAdministration.DosageComponent)value; + return this; + case "eventHistory": + EventHistory = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/MedicationDispense.cs b/src/Hl7.Fhir.R4/Model/Generated/MedicationDispense.cs index e4663c0a33..93d1ad4a1e 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/MedicationDispense.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/MedicationDispense.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -253,6 +253,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "function": + Function = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "actor": + Actor = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -455,6 +471,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "wasSubstituted": + WasSubstitutedElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "reason": + Reason = (List)value; + return this; + case "responsibleParty": + ResponsibleParty = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1140,6 +1178,88 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "partOf": + PartOf = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "statusReason": + StatusReason = (Hl7.Fhir.Model.DataType)value; + return this; + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "medication": + Medication = (Hl7.Fhir.Model.DataType)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "context": + Context = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "supportingInformation": + SupportingInformation = (List)value; + return this; + case "performer": + Performer = (List)value; + return this; + case "location": + Location = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "authorizingPrescription": + AuthorizingPrescription = (List)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "daysSupply": + DaysSupply = (Hl7.Fhir.Model.Quantity)value; + return this; + case "whenPrepared": + WhenPreparedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "whenHandedOver": + WhenHandedOverElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "destination": + Destination = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "receiver": + Receiver = (List)value; + return this; + case "note": + Note = (List)value; + return this; + case "dosageInstruction": + DosageInstruction = (List)value; + return this; + case "substitution": + Substitution = (Hl7.Fhir.Model.MedicationDispense.SubstitutionComponent)value; + return this; + case "detectedIssue": + DetectedIssue = (List)value; + return this; + case "eventHistory": + EventHistory = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/MedicationKnowledge.cs b/src/Hl7.Fhir.R4/Model/Generated/MedicationKnowledge.cs index 2ad8d20594..ed12b38b07 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/MedicationKnowledge.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/MedicationKnowledge.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -217,6 +217,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "reference": + Reference = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -351,6 +367,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "source": + Source = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -529,6 +561,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "item": + Item = (Hl7.Fhir.Model.DataType)value; + return this; + case "isActive": + IsActiveElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "strength": + Strength = (Hl7.Fhir.Model.Ratio)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -706,6 +757,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "source": + SourceElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "cost": + Cost = (Hl7.Fhir.Model.Money)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -860,6 +930,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1021,6 +1107,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "dosage": + Dosage = (List)value; + return this; + case "indication": + Indication = (Hl7.Fhir.Model.DataType)value; + return this; + case "patientCharacteristics": + PatientCharacteristics = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1156,6 +1261,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "dosage": + Dosage = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1313,6 +1434,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "characteristic": + Characteristic = (Hl7.Fhir.Model.DataType)value; + return this; + case "value": + ValueElement = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1447,6 +1584,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "classification": + Classification = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1583,6 +1736,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1721,6 +1890,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1900,6 +2085,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "regulatoryAuthority": + RegulatoryAuthority = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "substitution": + Substitution = (List)value; + return this; + case "schedule": + Schedule = (List)value; + return this; + case "maxDispense": + MaxDispense = (Hl7.Fhir.Model.MedicationKnowledge.MaxDispenseComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2054,6 +2261,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "allowed": + AllowedElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2166,6 +2389,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "schedule": + Schedule = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2298,6 +2534,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Duration)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2453,6 +2705,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "areaUnderCurve": + AreaUnderCurve = (List)value; + return this; + case "lethalDose50": + LethalDose50 = (List)value; + return this; + case "halfLifePeriod": + HalfLifePeriod = (Hl7.Fhir.Model.Duration)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3075,6 +3346,82 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "manufacturer": + Manufacturer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "doseForm": + DoseForm = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "amount": + Amount = (Hl7.Fhir.Model.Quantity)value; + return this; + case "synonym": + SynonymElement = (List)value; + return this; + case "relatedMedicationKnowledge": + RelatedMedicationKnowledge = (List)value; + return this; + case "associatedMedication": + AssociatedMedication = (List)value; + return this; + case "productType": + ProductType = (List)value; + return this; + case "monograph": + Monograph = (List)value; + return this; + case "ingredient": + Ingredient = (List)value; + return this; + case "preparationInstruction": + PreparationInstructionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "intendedRoute": + IntendedRoute = (List)value; + return this; + case "cost": + Cost = (List)value; + return this; + case "monitoringProgram": + MonitoringProgram = (List)value; + return this; + case "administrationGuidelines": + AdministrationGuidelines = (List)value; + return this; + case "medicineClassification": + MedicineClassification = (List)value; + return this; + case "packaging": + Packaging = (Hl7.Fhir.Model.MedicationKnowledge.PackagingComponent)value; + return this; + case "drugCharacteristic": + DrugCharacteristic = (List)value; + return this; + case "contraindication": + Contraindication = (List)value; + return this; + case "regulatory": + Regulatory = (List)value; + return this; + case "kinetics": + Kinetics = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/MedicationRequest.cs b/src/Hl7.Fhir.R4/Model/Generated/MedicationRequest.cs index 0edfef1de8..9cf3952102 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/MedicationRequest.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/MedicationRequest.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -426,6 +426,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "initialFill": + InitialFill = (Hl7.Fhir.Model.MedicationRequest.InitialFillComponent)value; + return this; + case "dispenseInterval": + DispenseInterval = (Hl7.Fhir.Model.Duration)value; + return this; + case "validityPeriod": + ValidityPeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "numberOfRepeatsAllowed": + NumberOfRepeatsAllowedElement = (Hl7.Fhir.Model.UnsignedInt)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "expectedSupplyDuration": + ExpectedSupplyDuration = (Hl7.Fhir.Model.Duration)value; + return this; + case "performer": + Performer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -567,6 +598,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "duration": + Duration = (Hl7.Fhir.Model.Duration)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -707,6 +754,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "allowed": + Allowed = (Hl7.Fhir.Model.DataType)value; + return this; + case "reason": + Reason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1645,6 +1708,112 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "statusReason": + StatusReason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "intent": + IntentElement = (Code)value; + return this; + case "category": + Category = (List)value; + return this; + case "priority": + PriorityElement = (Code)value; + return this; + case "doNotPerform": + DoNotPerformElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "reported": + Reported = (Hl7.Fhir.Model.DataType)value; + return this; + case "medication": + Medication = (Hl7.Fhir.Model.DataType)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "supportingInformation": + SupportingInformation = (List)value; + return this; + case "authoredOn": + AuthoredOnElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "requester": + Requester = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "performer": + Performer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "performerType": + PerformerType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "recorder": + Recorder = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "reasonReference": + ReasonReference = (List)value; + return this; + case "instantiatesCanonical": + InstantiatesCanonicalElement = (List)value; + return this; + case "instantiatesUri": + InstantiatesUriElement = (List)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "groupIdentifier": + GroupIdentifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "courseOfTherapyType": + CourseOfTherapyType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "insurance": + Insurance = (List)value; + return this; + case "note": + Note = (List)value; + return this; + case "dosageInstruction": + DosageInstruction = (List)value; + return this; + case "dispenseRequest": + DispenseRequest = (Hl7.Fhir.Model.MedicationRequest.DispenseRequestComponent)value; + return this; + case "substitution": + Substitution = (Hl7.Fhir.Model.MedicationRequest.SubstitutionComponent)value; + return this; + case "priorPrescription": + PriorPrescription = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "detectedIssue": + DetectedIssue = (List)value; + return this; + case "eventHistory": + EventHistory = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/MedicationStatement.cs b/src/Hl7.Fhir.R4/Model/Generated/MedicationStatement.cs index 81a11a4117..1bf70b8ac5 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/MedicationStatement.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/MedicationStatement.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -630,6 +630,67 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "partOf": + PartOf = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "statusReason": + StatusReason = (List)value; + return this; + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "medication": + Medication = (Hl7.Fhir.Model.DataType)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "context": + Context = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "effective": + Effective = (Hl7.Fhir.Model.DataType)value; + return this; + case "dateAsserted": + DateAssertedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "informationSource": + InformationSource = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "derivedFrom": + DerivedFrom = (List)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "reasonReference": + ReasonReference = (List)value; + return this; + case "note": + Note = (List)value; + return this; + case "dosage": + Dosage = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/MedicinalProduct.cs b/src/Hl7.Fhir.R4/Model/Generated/MedicinalProduct.cs index 38f5147998..108b8ada60 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/MedicinalProduct.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/MedicinalProduct.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -221,6 +221,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "productName": + ProductNameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "namePart": + NamePart = (List)value; + return this; + case "countryLanguage": + CountryLanguage = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -374,6 +393,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "part": + PartElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.Coding)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -529,6 +564,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "country": + Country = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "jurisdiction": + Jurisdiction = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "language": + Language = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -769,6 +823,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "operationType": + OperationType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "authorisationReferenceNumber": + AuthorisationReferenceNumber = (Hl7.Fhir.Model.Identifier)value; + return this; + case "effectiveDate": + EffectiveDateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "confidentialityIndicator": + ConfidentialityIndicator = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "manufacturer": + Manufacturer = (List)value; + return this; + case "regulator": + Regulator = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1032,6 +1114,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "intendedUse": + IntendedUse = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "indication": + Indication = (Hl7.Fhir.Model.DataType)value; + return this; + case "status": + Status = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "species": + Species = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1579,6 +1692,76 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "domain": + Domain = (Hl7.Fhir.Model.Coding)value; + return this; + case "combinedPharmaceuticalDoseForm": + CombinedPharmaceuticalDoseForm = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "legalStatusOfSupply": + LegalStatusOfSupply = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "additionalMonitoringIndicator": + AdditionalMonitoringIndicator = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "specialMeasures": + SpecialMeasuresElement = (List)value; + return this; + case "paediatricUseIndicator": + PaediatricUseIndicator = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "productClassification": + ProductClassification = (List)value; + return this; + case "marketingStatus": + MarketingStatus = (List)value; + return this; + case "pharmaceuticalProduct": + PharmaceuticalProduct = (List)value; + return this; + case "packagedMedicinalProduct": + PackagedMedicinalProduct = (List)value; + return this; + case "attachedDocument": + AttachedDocument = (List)value; + return this; + case "masterFile": + MasterFile = (List)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "clinicalTrial": + ClinicalTrial = (List)value; + return this; + case "name": + Name = (List)value; + return this; + case "crossReference": + CrossReference = (List)value; + return this; + case "manufacturingBusinessOperation": + ManufacturingBusinessOperation = (List)value; + return this; + case "specialDesignation": + SpecialDesignation = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/MedicinalProductAuthorization.cs b/src/Hl7.Fhir.R4/Model/Generated/MedicinalProductAuthorization.cs index c7e61b3043..90548009b5 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/MedicinalProductAuthorization.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/MedicinalProductAuthorization.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -244,6 +244,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "country": + Country = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "legalStatusOfSupply": + LegalStatusOfSupply = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "validityPeriod": + ValidityPeriod = (Hl7.Fhir.Model.Period)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -425,6 +450,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "date": + Date = (Hl7.Fhir.Model.DataType)value; + return this; + case "application": + Application = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -923,6 +970,64 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "country": + Country = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "status": + Status = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "statusDate": + StatusDateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "restoreDate": + RestoreDateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "validityPeriod": + ValidityPeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "dataExclusivityPeriod": + DataExclusivityPeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "dateOfFirstAuthorization": + DateOfFirstAuthorizationElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "internationalBirthDate": + InternationalBirthDateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "legalBasis": + LegalBasis = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "jurisdictionalAuthorization": + JurisdictionalAuthorization = (List)value; + return this; + case "holder": + Holder = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "regulator": + Regulator = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "procedure": + Procedure = (Hl7.Fhir.Model.MedicinalProductAuthorization.ProcedureComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/MedicinalProductContraindication.cs b/src/Hl7.Fhir.R4/Model/Generated/MedicinalProductContraindication.cs index 8d17648cbe..c5de22ac6b 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/MedicinalProductContraindication.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/MedicinalProductContraindication.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -187,6 +187,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "therapyRelationshipType": + TherapyRelationshipType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "medication": + Medication = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -419,6 +435,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "subject": + Subject = (List)value; + return this; + case "disease": + Disease = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "diseaseStatus": + DiseaseStatus = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "comorbidity": + Comorbidity = (List)value; + return this; + case "therapeuticIndication": + TherapeuticIndication = (List)value; + return this; + case "otherTherapy": + OtherTherapy = (List)value; + return this; + case "population": + Population = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/MedicinalProductIndication.cs b/src/Hl7.Fhir.R4/Model/Generated/MedicinalProductIndication.cs index 36be869ab5..632db1a377 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/MedicinalProductIndication.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/MedicinalProductIndication.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -187,6 +187,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "therapyRelationshipType": + TherapyRelationshipType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "medication": + Medication = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -461,6 +477,43 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "subject": + Subject = (List)value; + return this; + case "diseaseSymptomProcedure": + DiseaseSymptomProcedure = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "diseaseStatus": + DiseaseStatus = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "comorbidity": + Comorbidity = (List)value; + return this; + case "intendedEffect": + IntendedEffect = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "duration": + Duration = (Hl7.Fhir.Model.Quantity)value; + return this; + case "otherTherapy": + OtherTherapy = (List)value; + return this; + case "undesirableEffect": + UndesirableEffect = (List)value; + return this; + case "population": + Population = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/MedicinalProductIngredient.cs b/src/Hl7.Fhir.R4/Model/Generated/MedicinalProductIngredient.cs index e52cd2b196..946333aaa4 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/MedicinalProductIngredient.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/MedicinalProductIngredient.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -224,6 +224,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "group": + Group = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "confidentiality": + Confidentiality = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "strength": + Strength = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -484,6 +506,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "presentation": + Presentation = (Hl7.Fhir.Model.Ratio)value; + return this; + case "presentationLowLimit": + PresentationLowLimit = (Hl7.Fhir.Model.Ratio)value; + return this; + case "concentration": + Concentration = (Hl7.Fhir.Model.Ratio)value; + return this; + case "concentrationLowLimit": + ConcentrationLowLimit = (Hl7.Fhir.Model.Ratio)value; + return this; + case "measurementPoint": + MeasurementPointElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "country": + Country = (List)value; + return this; + case "referenceStrength": + ReferenceStrength = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -704,6 +757,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "substance": + Substance = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "strength": + Strength = (Hl7.Fhir.Model.Ratio)value; + return this; + case "strengthLowLimit": + StrengthLowLimit = (Hl7.Fhir.Model.Ratio)value; + return this; + case "measurementPoint": + MeasurementPointElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "country": + Country = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -841,6 +919,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "strength": + Strength = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1068,6 +1162,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "role": + Role = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "allergenicIndicator": + AllergenicIndicatorElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "manufacturer": + Manufacturer = (List)value; + return this; + case "specifiedSubstance": + SpecifiedSubstance = (List)value; + return this; + case "substance": + Substance = (Hl7.Fhir.Model.MedicinalProductIngredient.SubstanceComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/MedicinalProductInteraction.cs b/src/Hl7.Fhir.R4/Model/Generated/MedicinalProductInteraction.cs index e9bcf24b6a..e647a220e0 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/MedicinalProductInteraction.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/MedicinalProductInteraction.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -165,6 +165,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "item": + Item = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -409,6 +422,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "subject": + Subject = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "interactant": + Interactant = (List)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "effect": + Effect = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "incidence": + Incidence = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "management": + Management = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/MedicinalProductManufactured.cs b/src/Hl7.Fhir.R4/Model/Generated/MedicinalProductManufactured.cs index 5b60c0ac59..00b4a61208 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/MedicinalProductManufactured.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/MedicinalProductManufactured.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -279,6 +279,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "manufacturedDoseForm": + ManufacturedDoseForm = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "unitOfPresentation": + UnitOfPresentation = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "manufacturer": + Manufacturer = (List)value; + return this; + case "ingredient": + Ingredient = (List)value; + return this; + case "physicalCharacteristics": + PhysicalCharacteristics = (Hl7.Fhir.Model.ProdCharacteristic)value; + return this; + case "otherCharacteristics": + OtherCharacteristics = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/MedicinalProductPackaged.cs b/src/Hl7.Fhir.R4/Model/Generated/MedicinalProductPackaged.cs index 98faf65e4c..d71f80a36b 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/MedicinalProductPackaged.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/MedicinalProductPackaged.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -180,6 +180,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "outerPackaging": + OuterPackaging = (Hl7.Fhir.Model.Identifier)value; + return this; + case "immediatePackaging": + ImmediatePackaging = (Hl7.Fhir.Model.Identifier)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -539,6 +555,52 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "material": + Material = (List)value; + return this; + case "alternateMaterial": + AlternateMaterial = (List)value; + return this; + case "device": + Device = (List)value; + return this; + case "manufacturedItem": + ManufacturedItem = (List)value; + return this; + case "packageItem": + PackageItem = (List)value; + return this; + case "physicalCharacteristics": + PhysicalCharacteristics = (Hl7.Fhir.Model.ProdCharacteristic)value; + return this; + case "otherCharacteristics": + OtherCharacteristics = (List)value; + return this; + case "shelfLifeStorage": + ShelfLifeStorage = (List)value; + return this; + case "manufacturer": + Manufacturer = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -846,6 +908,43 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "subject": + Subject = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "legalStatusOfSupply": + LegalStatusOfSupply = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "marketingStatus": + MarketingStatus = (List)value; + return this; + case "marketingAuthorization": + MarketingAuthorization = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "manufacturer": + Manufacturer = (List)value; + return this; + case "batchIdentifier": + BatchIdentifier = (List)value; + return this; + case "packageItem": + PackageItem = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/MedicinalProductPharmaceutical.cs b/src/Hl7.Fhir.R4/Model/Generated/MedicinalProductPharmaceutical.cs index f8108b5a11..eacb99d654 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/MedicinalProductPharmaceutical.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/MedicinalProductPharmaceutical.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -180,6 +180,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "status": + Status = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -419,6 +435,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "firstDose": + FirstDose = (Hl7.Fhir.Model.Quantity)value; + return this; + case "maxSingleDose": + MaxSingleDose = (Hl7.Fhir.Model.Quantity)value; + return this; + case "maxDosePerDay": + MaxDosePerDay = (Hl7.Fhir.Model.Quantity)value; + return this; + case "maxDosePerTreatmentPeriod": + MaxDosePerTreatmentPeriod = (Hl7.Fhir.Model.Ratio)value; + return this; + case "maxTreatmentPeriod": + MaxTreatmentPeriod = (Hl7.Fhir.Model.Duration)value; + return this; + case "targetSpecies": + TargetSpecies = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -558,6 +605,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "withdrawalPeriod": + WithdrawalPeriod = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -731,6 +794,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "tissue": + Tissue = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.Quantity)value; + return this; + case "supportingInformation": + SupportingInformationElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -967,6 +1049,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "administrableDoseForm": + AdministrableDoseForm = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "unitOfPresentation": + UnitOfPresentation = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "ingredient": + Ingredient = (List)value; + return this; + case "device": + Device = (List)value; + return this; + case "characteristics": + Characteristics = (List)value; + return this; + case "routeOfAdministration": + RouteOfAdministration = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/MedicinalProductUndesirableEffect.cs b/src/Hl7.Fhir.R4/Model/Generated/MedicinalProductUndesirableEffect.cs index 71be182826..c7a7eaf317 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/MedicinalProductUndesirableEffect.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/MedicinalProductUndesirableEffect.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -235,6 +235,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "subject": + Subject = (List)value; + return this; + case "symptomConditionEffect": + SymptomConditionEffect = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "classification": + Classification = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "frequencyOfOccurrence": + FrequencyOfOccurrence = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "population": + Population = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/MessageDefinition.cs b/src/Hl7.Fhir.R4/Model/Generated/MessageDefinition.cs index f8163f1438..f544fe255e 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/MessageDefinition.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/MessageDefinition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -332,6 +332,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + CodeElement = (Code)value; + return this; + case "profile": + ProfileElement = (Hl7.Fhir.Model.Canonical)value; + return this; + case "min": + MinElement = (Hl7.Fhir.Model.UnsignedInt)value; + return this; + case "max": + MaxElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -507,6 +529,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "message": + MessageElement = (Hl7.Fhir.Model.Canonical)value; + return this; + case "situation": + SituationElement = (Hl7.Fhir.Model.Markdown)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1420,6 +1458,88 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "replaces": + ReplacesElement = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "base": + BaseElement = (Hl7.Fhir.Model.Canonical)value; + return this; + case "parent": + ParentElement = (List)value; + return this; + case "event": + Event = (Hl7.Fhir.Model.DataType)value; + return this; + case "category": + CategoryElement = (Code)value; + return this; + case "focus": + Focus = (List)value; + return this; + case "responseRequired": + ResponseRequiredElement = (Code)value; + return this; + case "allowedResponse": + AllowedResponse = (List)value; + return this; + case "graph": + GraphElement = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/MessageHeader.cs b/src/Hl7.Fhir.R4/Model/Generated/MessageHeader.cs index 05d7e9e2d0..d732f42084 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/MessageHeader.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/MessageHeader.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -297,6 +297,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "target": + Target = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "endpoint": + EndpointElement = (Hl7.Fhir.Model.FhirUrl)value; + return this; + case "receiver": + Receiver = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -570,6 +592,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "software": + SoftwareElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (Hl7.Fhir.Model.ContactPoint)value; + return this; + case "endpoint": + EndpointElement = (Hl7.Fhir.Model.FhirUrl)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -771,6 +818,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + IdentifierElement = (Hl7.Fhir.Model.Id)value; + return this; + case "code": + CodeElement = (Code)value; + return this; + case "details": + Details = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1115,6 +1181,49 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "event": + Event = (Hl7.Fhir.Model.DataType)value; + return this; + case "destination": + Destination = (List)value; + return this; + case "sender": + Sender = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "enterer": + Enterer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "author": + Author = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "source": + Source = (Hl7.Fhir.Model.MessageHeader.MessageSourceComponent)value; + return this; + case "responsible": + Responsible = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "reason": + Reason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "response": + Response = (Hl7.Fhir.Model.MessageHeader.ResponseComponent)value; + return this; + case "focus": + Focus = (List)value; + return this; + case "definition": + DefinitionElement = (Hl7.Fhir.Model.Canonical)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/MolecularSequence.cs b/src/Hl7.Fhir.R4/Model/Generated/MolecularSequence.cs index 4e08f7b0a3..03de0742c6 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/MolecularSequence.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/MolecularSequence.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -588,6 +588,43 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "chromosome": + Chromosome = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "genomeBuild": + GenomeBuildElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "orientation": + OrientationElement = (Code)value; + return this; + case "referenceSeqId": + ReferenceSeqId = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "referenceSeqPointer": + ReferenceSeqPointer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "referenceSeqString": + ReferenceSeqStringElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "strand": + StrandElement = (Code)value; + return this; + case "windowStart": + WindowStartElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "windowEnd": + WindowEndElement = (Hl7.Fhir.Model.Integer)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -906,6 +943,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "start": + StartElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "end": + EndElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "observedAllele": + ObservedAlleleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "referenceAllele": + ReferenceAlleleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "cigar": + CigarElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "variantPointer": + VariantPointer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1521,6 +1586,61 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "standardSequence": + StandardSequence = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "start": + StartElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "end": + EndElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "score": + Score = (Hl7.Fhir.Model.Quantity)value; + return this; + case "method": + Method = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "truthTP": + TruthTPElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "queryTP": + QueryTPElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "truthFN": + TruthFNElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "queryFP": + QueryFPElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "gtFP": + GtFPElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "precision": + PrecisionElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "recall": + RecallElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "fScore": + FScoreElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "roc": + Roc = (Hl7.Fhir.Model.MolecularSequence.RocComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1907,6 +2027,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "score": + ScoreElement = (List)value; + return this; + case "numTP": + NumTPElement = (List)value; + return this; + case "numFP": + NumFPElement = (List)value; + return this; + case "numFN": + NumFNElement = (List)value; + return this; + case "precision": + PrecisionElement = (List)value; + return this; + case "sensitivity": + SensitivityElement = (List)value; + return this; + case "fMeasure": + FMeasureElement = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2242,6 +2393,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "datasetId": + DatasetIdElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "variantsetId": + VariantsetIdElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "readsetId": + ReadsetIdElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2481,6 +2660,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "variantType": + VariantType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "exact": + ExactElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "length": + LengthElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "outer": + Outer = (Hl7.Fhir.Model.MolecularSequence.OuterComponent)value; + return this; + case "inner": + Inner = (Hl7.Fhir.Model.MolecularSequence.InnerComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2652,6 +2856,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "start": + StartElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "end": + EndElement = (Hl7.Fhir.Model.Integer)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2820,6 +3040,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "start": + StartElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "end": + EndElement = (Hl7.Fhir.Model.Integer)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3325,6 +3561,64 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "type": + TypeElement = (Code)value; + return this; + case "coordinateSystem": + CoordinateSystemElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "specimen": + Specimen = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "device": + Device = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "performer": + Performer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "referenceSeq": + ReferenceSeq = (Hl7.Fhir.Model.MolecularSequence.ReferenceSeqComponent)value; + return this; + case "variant": + Variant = (List)value; + return this; + case "observedSeq": + ObservedSeqElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "quality": + Quality = (List)value; + return this; + case "readCoverage": + ReadCoverageElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "repository": + Repository = (List)value; + return this; + case "pointer": + Pointer = (List)value; + return this; + case "structureVariant": + StructureVariant = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/Money.cs b/src/Hl7.Fhir.R4/Model/Generated/Money.cs index fc944c2d6f..bdcc95f883 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/Money.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/Money.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -1305,6 +1305,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "value": + ValueElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "currency": + CurrencyElement = (Code)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/NamingSystem.cs b/src/Hl7.Fhir.R4/Model/Generated/NamingSystem.cs index a6224f5561..d516a6c65e 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/NamingSystem.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/NamingSystem.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -387,6 +387,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "value": + ValueElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "preferred": + PreferredElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "comment": + CommentElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -897,6 +922,55 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "kind": + KindElement = (Code)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "responsible": + ResponsibleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "usage": + UsageElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "uniqueId": + UniqueId = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/NutritionOrder.cs b/src/Hl7.Fhir.R4/Model/Generated/NutritionOrder.cs index 7d7fc1dd0a..6bd91b00f5 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/NutritionOrder.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/NutritionOrder.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -295,6 +295,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (List)value; + return this; + case "schedule": + Schedule = (List)value; + return this; + case "nutrient": + Nutrient = (List)value; + return this; + case "texture": + Texture = (List)value; + return this; + case "fluidConsistencyType": + FluidConsistencyType = (List)value; + return this; + case "instruction": + InstructionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -435,6 +463,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "modifier": + Modifier = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "amount": + Amount = (Hl7.Fhir.Model.Quantity)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -572,6 +616,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "modifier": + Modifier = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "foodType": + FoodType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -808,6 +868,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "productName": + ProductNameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "schedule": + Schedule = (List)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "instruction": + InstructionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1151,6 +1236,43 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "baseFormulaType": + BaseFormulaType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "baseFormulaProductName": + BaseFormulaProductNameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "additiveType": + AdditiveType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "additiveProductName": + AdditiveProductNameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "caloricDensity": + CaloricDensity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "routeofAdministration": + RouteofAdministration = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "administration": + Administration = (List)value; + return this; + case "maxVolumeToDeliver": + MaxVolumeToDeliver = (Hl7.Fhir.Model.Quantity)value; + return this; + case "administrationInstruction": + AdministrationInstructionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1317,6 +1439,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "schedule": + Schedule = (Hl7.Fhir.Model.Timing)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "rate": + Rate = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1888,6 +2029,67 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "instantiatesCanonical": + InstantiatesCanonicalElement = (List)value; + return this; + case "instantiatesUri": + InstantiatesUriElement = (List)value; + return this; + case "instantiates": + InstantiatesElement = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "intent": + IntentElement = (Code)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "dateTime": + DateTimeElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "orderer": + Orderer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "allergyIntolerance": + AllergyIntolerance = (List)value; + return this; + case "foodPreferenceModifier": + FoodPreferenceModifier = (List)value; + return this; + case "excludeFoodModifier": + ExcludeFoodModifier = (List)value; + return this; + case "oralDiet": + OralDiet = (Hl7.Fhir.Model.NutritionOrder.OralDietComponent)value; + return this; + case "supplement": + Supplement = (List)value; + return this; + case "enteralFormula": + EnteralFormula = (Hl7.Fhir.Model.NutritionOrder.EnteralFormulaComponent)value; + return this; + case "note": + Note = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/Observation.cs b/src/Hl7.Fhir.R4/Model/Generated/Observation.cs index d61c1defac..2aaad91230 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/Observation.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/Observation.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -292,6 +292,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "low": + Low = (Hl7.Fhir.Model.Quantity)value; + return this; + case "high": + High = (Hl7.Fhir.Model.Quantity)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "appliesTo": + AppliesTo = (List)value; + return this; + case "age": + Age = (Hl7.Fhir.Model.Range)value; + return this; + case "text": + TextElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -503,6 +531,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + case "dataAbsentReason": + DataAbsentReason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "interpretation": + Interpretation = (List)value; + return this; + case "referenceRange": + ReferenceRange = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1173,6 +1226,88 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "partOf": + PartOf = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "category": + Category = (List)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "focus": + Focus = (List)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "effective": + Effective = (Hl7.Fhir.Model.DataType)value; + return this; + case "issued": + IssuedElement = (Hl7.Fhir.Model.Instant)value; + return this; + case "performer": + Performer = (List)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + case "dataAbsentReason": + DataAbsentReason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "interpretation": + Interpretation = (List)value; + return this; + case "note": + Note = (List)value; + return this; + case "bodySite": + BodySite = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "method": + Method = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "specimen": + Specimen = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "device": + Device = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "referenceRange": + ReferenceRange = (List)value; + return this; + case "hasMember": + HasMember = (List)value; + return this; + case "derivedFrom": + DerivedFrom = (List)value; + return this; + case "component": + Component = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/ObservationDefinition.cs b/src/Hl7.Fhir.R4/Model/Generated/ObservationDefinition.cs index a53a0e5501..1f91ee2090 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/ObservationDefinition.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/ObservationDefinition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -370,6 +370,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "customaryUnit": + CustomaryUnit = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "unit": + Unit = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "conversionFactor": + ConversionFactorElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "decimalPrecision": + DecimalPrecisionElement = (Hl7.Fhir.Model.Integer)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -694,6 +716,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "category": + CategoryElement = (Code)value; + return this; + case "range": + Range = (Hl7.Fhir.Model.Range)value; + return this; + case "context": + Context = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "appliesTo": + AppliesTo = (List)value; + return this; + case "gender": + GenderElement = (Code)value; + return this; + case "age": + Age = (Hl7.Fhir.Model.Range)value; + return this; + case "gestationalAge": + GestationalAge = (Hl7.Fhir.Model.Range)value; + return this; + case "condition": + ConditionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1126,6 +1182,55 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "category": + Category = (List)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "permittedDataType": + PermittedDataTypeElement = (List>)value; + return this; + case "multipleResultsAllowed": + MultipleResultsAllowedElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "method": + Method = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "preferredReportName": + PreferredReportNameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "quantitativeDetails": + QuantitativeDetails = (Hl7.Fhir.Model.ObservationDefinition.QuantitativeDetailsComponent)value; + return this; + case "qualifiedInterval": + QualifiedInterval = (List)value; + return this; + case "validCodedValueSet": + ValidCodedValueSet = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "normalCodedValueSet": + NormalCodedValueSet = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "abnormalCodedValueSet": + AbnormalCodedValueSet = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "criticalCodedValueSet": + CriticalCodedValueSet = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/OperationDefinition.cs b/src/Hl7.Fhir.R4/Model/Generated/OperationDefinition.cs index 6595e3f19f..a8696a5c13 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/OperationDefinition.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/OperationDefinition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -554,6 +554,49 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.Code)value; + return this; + case "use": + UseElement = (Code)value; + return this; + case "min": + MinElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "max": + MaxElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "documentation": + DocumentationElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "type": + TypeElement = (Code)value; + return this; + case "targetProfile": + TargetProfileElement = (List)value; + return this; + case "searchType": + SearchTypeElement = (Code)value; + return this; + case "binding": + Binding = (Hl7.Fhir.Model.OperationDefinition.BindingComponent)value; + return this; + case "referencedFrom": + ReferencedFrom = (List)value; + return this; + case "part": + Part = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -738,6 +781,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "strength": + StrengthElement = (Code)value; + return this; + case "valueSet": + ValueSetElement = (Hl7.Fhir.Model.Canonical)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -911,6 +970,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "source": + SourceElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "sourceId": + SourceIdElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1084,6 +1159,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "parameterName": + ParameterNameElement = (List)value; + return this; + case "comment": + CommentElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2107,6 +2198,94 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "kind": + KindElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "affectsState": + AffectsStateElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "code": + CodeElement = (Hl7.Fhir.Model.Code)value; + return this; + case "comment": + CommentElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "base": + BaseElement = (Hl7.Fhir.Model.Canonical)value; + return this; + case "resource": + ResourceElement = (List>)value; + return this; + case "system": + SystemElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "type": + TypeElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "instance": + InstanceElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "inputProfile": + InputProfileElement = (Hl7.Fhir.Model.Canonical)value; + return this; + case "outputProfile": + OutputProfileElement = (Hl7.Fhir.Model.Canonical)value; + return this; + case "parameter": + Parameter = (List)value; + return this; + case "overload": + Overload = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/Organization.cs b/src/Hl7.Fhir.R4/Model/Generated/Organization.cs index aafafc4ecf..99dc258d21 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/Organization.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/Organization.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -229,6 +229,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "purpose": + Purpose = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "name": + Name = (Hl7.Fhir.Model.HumanName)value; + return this; + case "telecom": + Telecom = (List)value; + return this; + case "address": + Address = (Hl7.Fhir.Model.Address)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -585,6 +607,46 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "active": + ActiveElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "type": + Type = (List)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "alias": + AliasElement = (List)value; + return this; + case "telecom": + Telecom = (List)value; + return this; + case "address": + Address = (List)value; + return this; + case "partOf": + PartOf = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "endpoint": + Endpoint = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/OrganizationAffiliation.cs b/src/Hl7.Fhir.R4/Model/Generated/OrganizationAffiliation.cs index adf3ba61d2..7eec29f305 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/OrganizationAffiliation.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/OrganizationAffiliation.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -417,6 +417,52 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "active": + ActiveElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "organization": + Organization = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "participatingOrganization": + ParticipatingOrganization = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "network": + Network = (List)value; + return this; + case "code": + Code = (List)value; + return this; + case "specialty": + Specialty = (List)value; + return this; + case "location": + Location = (List)value; + return this; + case "healthcareService": + HealthcareService = (List)value; + return this; + case "telecom": + Telecom = (List)value; + return this; + case "endpoint": + Endpoint = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/ParameterDefinition.cs b/src/Hl7.Fhir.R4/Model/Generated/ParameterDefinition.cs index 9e4765d1a9..78b4a2951e 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/ParameterDefinition.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/ParameterDefinition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -405,6 +405,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.Code)value; + return this; + case "use": + UseElement = (Code)value; + return this; + case "min": + MinElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "max": + MaxElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "documentation": + DocumentationElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "type": + TypeElement = (Code)value; + return this; + case "profile": + ProfileElement = (Hl7.Fhir.Model.Canonical)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/Patient.cs b/src/Hl7.Fhir.R4/Model/Generated/Patient.cs index a5c4d96009..0f9339d2a6 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/Patient.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/Patient.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -349,6 +349,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "relationship": + Relationship = (List)value; + return this; + case "name": + Name = (Hl7.Fhir.Model.HumanName)value; + return this; + case "telecom": + Telecom = (List)value; + return this; + case "address": + Address = (Hl7.Fhir.Model.Address)value; + return this; + case "gender": + GenderElement = (Code)value; + return this; + case "organization": + Organization = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -509,6 +540,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "language": + Language = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "preferred": + PreferredElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -669,6 +716,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "other": + Other = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "type": + TypeElement = (Code)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1159,6 +1222,64 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "active": + ActiveElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "name": + Name = (List)value; + return this; + case "telecom": + Telecom = (List)value; + return this; + case "gender": + GenderElement = (Code)value; + return this; + case "birthDate": + BirthDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "deceased": + Deceased = (Hl7.Fhir.Model.DataType)value; + return this; + case "address": + Address = (List)value; + return this; + case "maritalStatus": + MaritalStatus = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "multipleBirth": + MultipleBirth = (Hl7.Fhir.Model.DataType)value; + return this; + case "photo": + Photo = (List)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "communication": + Communication = (List)value; + return this; + case "generalPractitioner": + GeneralPractitioner = (List)value; + return this; + case "managingOrganization": + ManagingOrganization = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "link": + Link = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/PaymentNotice.cs b/src/Hl7.Fhir.R4/Model/Generated/PaymentNotice.cs index 94a7753b31..f5d4349f62 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/PaymentNotice.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/PaymentNotice.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -455,6 +455,52 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "request": + Request = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "response": + Response = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "created": + CreatedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "provider": + Provider = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "payment": + Payment = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "paymentDate": + PaymentDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "payee": + Payee = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "recipient": + Recipient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "amount": + Amount = (Hl7.Fhir.Model.Money)value; + return this; + case "paymentStatus": + PaymentStatus = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/PaymentReconciliation.cs b/src/Hl7.Fhir.R4/Model/Generated/PaymentReconciliation.cs index 240c74442e..8bc50e9a9e 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/PaymentReconciliation.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/PaymentReconciliation.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -383,6 +383,46 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "predecessor": + Predecessor = (Hl7.Fhir.Model.Identifier)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "request": + Request = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "submitter": + Submitter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "response": + Response = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "responsible": + Responsible = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "payee": + Payee = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "amount": + Amount = (Hl7.Fhir.Model.Money)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -564,6 +604,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "text": + TextElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1065,6 +1121,61 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "created": + CreatedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "paymentIssuer": + PaymentIssuer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "request": + Request = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "requestor": + Requestor = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "outcome": + OutcomeElement = (Code)value; + return this; + case "disposition": + DispositionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "paymentDate": + PaymentDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "paymentAmount": + PaymentAmount = (Hl7.Fhir.Model.Money)value; + return this; + case "paymentIdentifier": + PaymentIdentifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "detail": + Detail = (List)value; + return this; + case "formCode": + FormCode = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "processNote": + ProcessNote = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/Person.cs b/src/Hl7.Fhir.R4/Model/Generated/Person.cs index 3583040452..2408a2b1a7 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/Person.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/Person.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -240,6 +240,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "target": + Target = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "assurance": + AssuranceElement = (Code)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -591,6 +607,46 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "name": + Name = (List)value; + return this; + case "telecom": + Telecom = (List)value; + return this; + case "gender": + GenderElement = (Code)value; + return this; + case "birthDate": + BirthDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "address": + Address = (List)value; + return this; + case "photo": + Photo = (Hl7.Fhir.Model.Attachment)value; + return this; + case "managingOrganization": + ManagingOrganization = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "active": + ActiveElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "link": + Link = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/PlanDefinition.cs b/src/Hl7.Fhir.R4/Model/Generated/PlanDefinition.cs index a8a872d835..78e3888189 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/PlanDefinition.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/PlanDefinition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -299,6 +299,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "description": + Description = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "priority": + Priority = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "start": + Start = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "addresses": + Addresses = (List)value; + return this; + case "documentation": + Documentation = (List)value; + return this; + case "target": + Target = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -463,6 +494,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "measure": + Measure = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "detail": + Detail = (Hl7.Fhir.Model.DataType)value; + return this; + case "due": + Due = (Hl7.Fhir.Model.Duration)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1374,6 +1424,97 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "prefix": + PrefixElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "textEquivalent": + TextEquivalentElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "priority": + PriorityElement = (Code)value; + return this; + case "code": + Code = (List)value; + return this; + case "reason": + Reason = (List)value; + return this; + case "documentation": + Documentation = (List)value; + return this; + case "goalId": + GoalIdElement = (List)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.DataType)value; + return this; + case "trigger": + Trigger = (List)value; + return this; + case "condition": + Condition = (List)value; + return this; + case "input": + Input = (List)value; + return this; + case "output": + Output = (List)value; + return this; + case "relatedAction": + RelatedAction = (List)value; + return this; + case "timing": + Timing = (Hl7.Fhir.Model.DataType)value; + return this; + case "participant": + Participant = (List)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "groupingBehavior": + GroupingBehaviorElement = (Code)value; + return this; + case "selectionBehavior": + SelectionBehaviorElement = (Code)value; + return this; + case "requiredBehavior": + RequiredBehaviorElement = (Code)value; + return this; + case "precheckBehavior": + PrecheckBehaviorElement = (Code)value; + return this; + case "cardinalityBehavior": + CardinalityBehaviorElement = (Code)value; + return this; + case "definition": + Definition = (Hl7.Fhir.Model.DataType)value; + return this; + case "transform": + TransformElement = (Hl7.Fhir.Model.Canonical)value; + return this; + case "dynamicValue": + DynamicValue = (List)value; + return this; + case "action": + Action = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1556,6 +1697,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "kind": + KindElement = (Code)value; + return this; + case "expression": + Expression = (Hl7.Fhir.Model.Expression)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1755,6 +1912,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "actionId": + ActionIdElement = (Hl7.Fhir.Model.Id)value; + return this; + case "relationship": + RelationshipElement = (Code)value; + return this; + case "offset": + Offset = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1913,6 +2089,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "role": + Role = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2067,6 +2259,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "path": + PathElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "expression": + Expression = (Hl7.Fhir.Model.Expression)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3107,6 +3315,109 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "subtitle": + SubtitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.DataType)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "usage": + UsageElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "approvalDate": + ApprovalDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "lastReviewDate": + LastReviewDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "effectivePeriod": + EffectivePeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "topic": + Topic = (List)value; + return this; + case "author": + Author = (List)value; + return this; + case "editor": + Editor = (List)value; + return this; + case "reviewer": + Reviewer = (List)value; + return this; + case "endorser": + Endorser = (List)value; + return this; + case "relatedArtifact": + RelatedArtifact = (List)value; + return this; + case "library": + LibraryElement = (List)value; + return this; + case "goal": + Goal = (List)value; + return this; + case "action": + Action = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/Population.cs b/src/Hl7.Fhir.R4/Model/Generated/Population.cs index 298ee8a3e1..81e4feebc4 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/Population.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/Population.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -212,6 +212,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "age": + Age = (Hl7.Fhir.Model.DataType)value; + return this; + case "gender": + Gender = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "race": + Race = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "physiologicalCondition": + PhysiologicalCondition = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/Practitioner.cs b/src/Hl7.Fhir.R4/Model/Generated/Practitioner.cs index 49f1f31806..14af0bb071 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/Practitioner.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/Practitioner.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -232,6 +232,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "issuer": + Issuer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -586,6 +608,46 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "active": + ActiveElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "name": + Name = (List)value; + return this; + case "telecom": + Telecom = (List)value; + return this; + case "address": + Address = (List)value; + return this; + case "gender": + GenderElement = (Code)value; + return this; + case "birthDate": + BirthDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "photo": + Photo = (List)value; + return this; + case "qualification": + Qualification = (List)value; + return this; + case "communication": + Communication = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/PractitionerRole.cs b/src/Hl7.Fhir.R4/Model/Generated/PractitionerRole.cs index 8e57e35b1d..e9ebf9cb70 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/PractitionerRole.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/PractitionerRole.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -303,6 +303,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "daysOfWeek": + DaysOfWeekElement = (List>)value; + return this; + case "allDay": + AllDayElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "availableStartTime": + AvailableStartTimeElement = (Hl7.Fhir.Model.Time)value; + return this; + case "availableEndTime": + AvailableEndTimeElement = (Hl7.Fhir.Model.Time)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -459,6 +481,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "during": + During = (Hl7.Fhir.Model.Period)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -891,6 +929,58 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "active": + ActiveElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "practitioner": + Practitioner = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "organization": + Organization = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "code": + Code = (List)value; + return this; + case "specialty": + Specialty = (List)value; + return this; + case "location": + Location = (List)value; + return this; + case "healthcareService": + HealthcareService = (List)value; + return this; + case "telecom": + Telecom = (List)value; + return this; + case "availableTime": + AvailableTime = (List)value; + return this; + case "notAvailable": + NotAvailable = (List)value; + return this; + case "availabilityExceptions": + AvailabilityExceptionsElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "endpoint": + Endpoint = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/Procedure.cs b/src/Hl7.Fhir.R4/Model/Generated/Procedure.cs index 177d12df42..52b6473cb3 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/Procedure.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/Procedure.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -212,6 +212,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "function": + Function = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "actor": + Actor = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "onBehalfOf": + OnBehalfOf = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -352,6 +371,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "action": + Action = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "manipulated": + Manipulated = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1129,6 +1164,100 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "instantiatesCanonical": + InstantiatesCanonicalElement = (List)value; + return this; + case "instantiatesUri": + InstantiatesUriElement = (List)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "partOf": + PartOf = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "statusReason": + StatusReason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "performed": + Performed = (Hl7.Fhir.Model.DataType)value; + return this; + case "recorder": + Recorder = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "asserter": + Asserter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "performer": + Performer = (List)value; + return this; + case "location": + Location = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "reasonReference": + ReasonReference = (List)value; + return this; + case "bodySite": + BodySite = (List)value; + return this; + case "outcome": + Outcome = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "report": + Report = (List)value; + return this; + case "complication": + Complication = (List)value; + return this; + case "complicationDetail": + ComplicationDetail = (List)value; + return this; + case "followUp": + FollowUp = (List)value; + return this; + case "note": + Note = (List)value; + return this; + case "focalDevice": + FocalDevice = (List)value; + return this; + case "usedReference": + UsedReference = (List)value; + return this; + case "usedCode": + UsedCode = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/ProdCharacteristic.cs b/src/Hl7.Fhir.R4/Model/Generated/ProdCharacteristic.cs index e267b2febc..dfd21924d5 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/ProdCharacteristic.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/ProdCharacteristic.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -411,6 +411,49 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "height": + Height = (Hl7.Fhir.Model.Quantity)value; + return this; + case "width": + Width = (Hl7.Fhir.Model.Quantity)value; + return this; + case "depth": + Depth = (Hl7.Fhir.Model.Quantity)value; + return this; + case "weight": + Weight = (Hl7.Fhir.Model.Quantity)value; + return this; + case "nominalVolume": + NominalVolume = (Hl7.Fhir.Model.Quantity)value; + return this; + case "externalDiameter": + ExternalDiameter = (Hl7.Fhir.Model.Quantity)value; + return this; + case "shape": + ShapeElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "color": + ColorElement = (List)value; + return this; + case "imprint": + ImprintElement = (List)value; + return this; + case "image": + Image = (List)value; + return this; + case "scoring": + Scoring = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/ProductShelfLife.cs b/src/Hl7.Fhir.R4/Model/Generated/ProductShelfLife.cs index 94b04c2908..869004f77b 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/ProductShelfLife.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/ProductShelfLife.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -210,6 +210,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Quantity)value; + return this; + case "specialPrecautionsForStorage": + SpecialPrecautionsForStorage = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/Provenance.cs b/src/Hl7.Fhir.R4/Model/Generated/Provenance.cs index fe47695fa5..789456bd2e 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/Provenance.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/Provenance.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -277,6 +277,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "role": + Role = (List)value; + return this; + case "who": + Who = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "onBehalfOf": + OnBehalfOf = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -457,6 +479,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "role": + RoleElement = (Code)value; + return this; + case "what": + What = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "agent": + Agent = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -795,6 +836,46 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "target": + Target = (List)value; + return this; + case "occurred": + Occurred = (Hl7.Fhir.Model.DataType)value; + return this; + case "recorded": + RecordedElement = (Hl7.Fhir.Model.Instant)value; + return this; + case "policy": + PolicyElement = (List)value; + return this; + case "location": + Location = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "reason": + Reason = (List)value; + return this; + case "activity": + Activity = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "agent": + Agent = (List)value; + return this; + case "entity": + Entity = (List)value; + return this; + case "signature": + Signature = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/Questionnaire.cs b/src/Hl7.Fhir.R4/Model/Generated/Questionnaire.cs index f6bdaa798b..446793d6fb 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/Questionnaire.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/Questionnaire.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -80,12 +80,6 @@ public enum QuestionnaireItemType [EnumLiteral("display"), Description("Display")] Display, /// - /// An item that defines a specific answer to be captured, and which may have child items. (the answer provided in the QuestionnaireResponse should be of the defined datatype). - /// (system: http://hl7.org/fhir/item-type) - /// - [EnumLiteral("question"), Description("Question")] - Question, - /// /// Question with a yes/no answer (valueBoolean). /// (system: http://hl7.org/fhir/item-type) /// @@ -876,6 +870,64 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "linkId": + LinkIdElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "definition": + DefinitionElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "code": + Code = (List)value; + return this; + case "prefix": + PrefixElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "text": + TextElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "type": + TypeElement = (Code)value; + return this; + case "enableWhen": + EnableWhen = (List)value; + return this; + case "enableBehavior": + EnableBehaviorElement = (Code)value; + return this; + case "required": + RequiredElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "repeats": + RepeatsElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "readOnly": + ReadOnlyElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "maxLength": + MaxLengthElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "answerValueSet": + AnswerValueSetElement = (Hl7.Fhir.Model.Canonical)value; + return this; + case "answerOption": + AnswerOption = (List)value; + return this; + case "initial": + Initial = (List)value; + return this; + case "item": + Item = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1092,6 +1144,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "question": + QuestionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "operator": + OperatorElement = (Code)value; + return this; + case "answer": + Answer = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1252,6 +1323,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + case "initialSelected": + InitialSelectedElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1372,6 +1459,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2199,6 +2299,82 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "derivedFrom": + DerivedFromElement = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "subjectType": + SubjectTypeElement = (List>)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "approvalDate": + ApprovalDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "lastReviewDate": + LastReviewDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "effectivePeriod": + EffectivePeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "code": + Code = (List)value; + return this; + case "item": + Item = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/QuestionnaireResponse.cs b/src/Hl7.Fhir.R4/Model/Generated/QuestionnaireResponse.cs index 1f4b871a48..4bd212fc42 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/QuestionnaireResponse.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/QuestionnaireResponse.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -347,6 +347,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "linkId": + LinkIdElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "definition": + DefinitionElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "text": + TextElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "answer": + Answer = (List)value; + return this; + case "item": + Item = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -491,6 +516,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + case "item": + Item = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -872,6 +913,49 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "partOf": + PartOf = (List)value; + return this; + case "questionnaire": + QuestionnaireElement = (Hl7.Fhir.Model.Canonical)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "authored": + AuthoredElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "author": + Author = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "source": + Source = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "item": + Item = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/Ratio.cs b/src/Hl7.Fhir.R4/Model/Generated/Ratio.cs index b2dfb8d2dd..944ba772c3 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/Ratio.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/Ratio.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -169,6 +169,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "numerator": + Numerator = (Hl7.Fhir.Model.Quantity)value; + return this; + case "denominator": + Denominator = (Hl7.Fhir.Model.Quantity)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/RelatedPerson.cs b/src/Hl7.Fhir.R4/Model/Generated/RelatedPerson.cs index 05b4e4dda9..67b147a64c 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/RelatedPerson.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/RelatedPerson.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -205,6 +205,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "language": + Language = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "preferred": + PreferredElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -605,6 +621,52 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "active": + ActiveElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "relationship": + Relationship = (List)value; + return this; + case "name": + Name = (List)value; + return this; + case "telecom": + Telecom = (List)value; + return this; + case "gender": + GenderElement = (Code)value; + return this; + case "birthDate": + BirthDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "address": + Address = (List)value; + return this; + case "photo": + Photo = (List)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "communication": + Communication = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/RequestGroup.cs b/src/Hl7.Fhir.R4/Model/Generated/RequestGroup.cs index d9e8cce233..be87baacc1 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/RequestGroup.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/RequestGroup.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -747,6 +747,73 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "prefix": + PrefixElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "textEquivalent": + TextEquivalentElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "priority": + PriorityElement = (Code)value; + return this; + case "code": + Code = (List)value; + return this; + case "documentation": + Documentation = (List)value; + return this; + case "condition": + Condition = (List)value; + return this; + case "relatedAction": + RelatedAction = (List)value; + return this; + case "timing": + Timing = (Hl7.Fhir.Model.DataType)value; + return this; + case "participant": + Participant = (List)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "groupingBehavior": + GroupingBehaviorElement = (Code)value; + return this; + case "selectionBehavior": + SelectionBehaviorElement = (Code)value; + return this; + case "requiredBehavior": + RequiredBehaviorElement = (Code)value; + return this; + case "precheckBehavior": + PrecheckBehaviorElement = (Code)value; + return this; + case "cardinalityBehavior": + CardinalityBehaviorElement = (Code)value; + return this; + case "resource": + Resource = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "action": + Action = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -921,6 +988,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "kind": + KindElement = (Code)value; + return this; + case "expression": + Expression = (Hl7.Fhir.Model.Expression)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1119,6 +1202,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "actionId": + ActionIdElement = (Hl7.Fhir.Model.Id)value; + return this; + case "relationship": + RelationshipElement = (Code)value; + return this; + case "offset": + Offset = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1716,6 +1818,70 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "instantiatesCanonical": + InstantiatesCanonicalElement = (List)value; + return this; + case "instantiatesUri": + InstantiatesUriElement = (List)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "replaces": + Replaces = (List)value; + return this; + case "groupIdentifier": + GroupIdentifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "intent": + IntentElement = (Code)value; + return this; + case "priority": + PriorityElement = (Code)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "authoredOn": + AuthoredOnElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "author": + Author = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "reasonReference": + ReasonReference = (List)value; + return this; + case "note": + Note = (List)value; + return this; + case "action": + Action = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/ResearchDefinition.cs b/src/Hl7.Fhir.R4/Model/Generated/ResearchDefinition.cs index 6831ec0137..2236c169c6 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/ResearchDefinition.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/ResearchDefinition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -1196,6 +1196,118 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "shortTitle": + ShortTitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "subtitle": + SubtitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.DataType)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "comment": + CommentElement = (List)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "usage": + UsageElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "approvalDate": + ApprovalDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "lastReviewDate": + LastReviewDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "effectivePeriod": + EffectivePeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "topic": + Topic = (List)value; + return this; + case "author": + Author = (List)value; + return this; + case "editor": + Editor = (List)value; + return this; + case "reviewer": + Reviewer = (List)value; + return this; + case "endorser": + Endorser = (List)value; + return this; + case "relatedArtifact": + RelatedArtifact = (List)value; + return this; + case "library": + LibraryElement = (List)value; + return this; + case "population": + Population = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "exposure": + Exposure = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "exposureAlternative": + ExposureAlternative = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "outcome": + Outcome = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/ResearchElementDefinition.cs b/src/Hl7.Fhir.R4/Model/Generated/ResearchElementDefinition.cs index 752fcaea99..27afc5bc22 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/ResearchElementDefinition.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/ResearchElementDefinition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -528,6 +528,52 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "definition": + Definition = (Hl7.Fhir.Model.DataType)value; + return this; + case "usageContext": + UsageContext = (List)value; + return this; + case "exclude": + ExcludeElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "unitOfMeasure": + UnitOfMeasure = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "studyEffectiveDescription": + StudyEffectiveDescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "studyEffective": + StudyEffective = (Hl7.Fhir.Model.DataType)value; + return this; + case "studyEffectiveTimeFromStart": + StudyEffectiveTimeFromStart = (Hl7.Fhir.Model.Duration)value; + return this; + case "studyEffectiveGroupMeasure": + StudyEffectiveGroupMeasureElement = (Code)value; + return this; + case "participantEffectiveDescription": + ParticipantEffectiveDescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "participantEffective": + ParticipantEffective = (Hl7.Fhir.Model.DataType)value; + return this; + case "participantEffectiveTimeFromStart": + ParticipantEffectiveTimeFromStart = (Hl7.Fhir.Model.Duration)value; + return this; + case "participantEffectiveGroupMeasure": + ParticipantEffectiveGroupMeasureElement = (Code)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1696,6 +1742,115 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "shortTitle": + ShortTitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "subtitle": + SubtitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.DataType)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "comment": + CommentElement = (List)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "usage": + UsageElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "approvalDate": + ApprovalDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "lastReviewDate": + LastReviewDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "effectivePeriod": + EffectivePeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "topic": + Topic = (List)value; + return this; + case "author": + Author = (List)value; + return this; + case "editor": + Editor = (List)value; + return this; + case "reviewer": + Reviewer = (List)value; + return this; + case "endorser": + Endorser = (List)value; + return this; + case "relatedArtifact": + RelatedArtifact = (List)value; + return this; + case "library": + LibraryElement = (List)value; + return this; + case "type": + TypeElement = (Code)value; + return this; + case "variableType": + VariableTypeElement = (Code)value; + return this; + case "characteristic": + Characteristic = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/ResearchStudy.cs b/src/Hl7.Fhir.R4/Model/Generated/ResearchStudy.cs index bb5a3322e3..be69ad3e78 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/ResearchStudy.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/ResearchStudy.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -320,6 +320,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -475,6 +494,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1149,6 +1184,88 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "protocol": + Protocol = (List)value; + return this; + case "partOf": + PartOf = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "primaryPurposeType": + PrimaryPurposeType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "phase": + Phase = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "category": + Category = (List)value; + return this; + case "focus": + Focus = (List)value; + return this; + case "condition": + Condition = (List)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "relatedArtifact": + RelatedArtifact = (List)value; + return this; + case "keyword": + Keyword = (List)value; + return this; + case "location": + Location = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "enrollment": + Enrollment = (List)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "sponsor": + Sponsor = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "principalInvestigator": + PrincipalInvestigator = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "site": + Site = (List)value; + return this; + case "reasonStopped": + ReasonStopped = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "note": + Note = (List)value; + return this; + case "arm": + Arm = (List)value; + return this; + case "objective": + Objective = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/ResearchSubject.cs b/src/Hl7.Fhir.R4/Model/Generated/ResearchSubject.cs index e0401f3ab6..3f84b16123 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/ResearchSubject.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/ResearchSubject.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -451,6 +451,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "study": + Study = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "individual": + Individual = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "assignedArm": + AssignedArmElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "actualArm": + ActualArmElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "consent": + Consent = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/RiskAssessment.cs b/src/Hl7.Fhir.R4/Model/Generated/RiskAssessment.cs index a6f55d477c..328a00b924 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/RiskAssessment.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/RiskAssessment.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -312,6 +312,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "outcome": + Outcome = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "probability": + Probability = (Hl7.Fhir.Model.DataType)value; + return this; + case "qualitativeRisk": + QualitativeRisk = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "relativeRisk": + RelativeRiskElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "when": + When = (Hl7.Fhir.Model.DataType)value; + return this; + case "rationale": + RationaleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -819,6 +847,67 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "basedOn": + BasedOn = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "parent": + Parent = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "method": + Method = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "occurrence": + Occurrence = (Hl7.Fhir.Model.DataType)value; + return this; + case "condition": + Condition = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "performer": + Performer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "reasonReference": + ReasonReference = (List)value; + return this; + case "basis": + Basis = (List)value; + return this; + case "prediction": + Prediction = (List)value; + return this; + case "mitigation": + MitigationElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "note": + Note = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/RiskEvidenceSynthesis.cs b/src/Hl7.Fhir.R4/Model/Generated/RiskEvidenceSynthesis.cs index 98ff0dd82f..dc69b07e68 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/RiskEvidenceSynthesis.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/RiskEvidenceSynthesis.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -260,6 +260,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "numberOfStudies": + NumberOfStudiesElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "numberOfParticipants": + NumberOfParticipantsElement = (Hl7.Fhir.Model.Integer)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -576,6 +595,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "value": + ValueElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "unitOfMeasure": + UnitOfMeasure = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "denominatorCount": + DenominatorCountElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "numeratorCount": + NumeratorCountElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "precisionEstimate": + PrecisionEstimate = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -813,6 +863,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "level": + LevelElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "from": + FromElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "to": + ToElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -975,6 +1047,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "rating": + Rating = (List)value; + return this; + case "note": + Note = (List)value; + return this; + case "certaintySubcomponent": + CertaintySubcomponent = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1136,6 +1227,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "rating": + Rating = (List)value; + return this; + case "note": + Note = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2091,6 +2201,109 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "note": + Note = (List)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "approvalDate": + ApprovalDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "lastReviewDate": + LastReviewDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "effectivePeriod": + EffectivePeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "topic": + Topic = (List)value; + return this; + case "author": + Author = (List)value; + return this; + case "editor": + Editor = (List)value; + return this; + case "reviewer": + Reviewer = (List)value; + return this; + case "endorser": + Endorser = (List)value; + return this; + case "relatedArtifact": + RelatedArtifact = (List)value; + return this; + case "synthesisType": + SynthesisType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "studyType": + StudyType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "population": + Population = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "exposure": + Exposure = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "outcome": + Outcome = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "sampleSize": + SampleSize = (Hl7.Fhir.Model.RiskEvidenceSynthesis.SampleSizeComponent)value; + return this; + case "riskEstimate": + RiskEstimate = (Hl7.Fhir.Model.RiskEvidenceSynthesis.RiskEstimateComponent)value; + return this; + case "certainty": + Certainty = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/SampledData.cs b/src/Hl7.Fhir.R4/Model/Generated/SampledData.cs index b5d0431b7a..2fbc6a90ba 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/SampledData.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/SampledData.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -385,6 +385,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "origin": + Origin = (Hl7.Fhir.Model.Quantity)value; + return this; + case "period": + PeriodElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "factor": + FactorElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "lowerLimit": + LowerLimitElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "upperLimit": + UpperLimitElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "dimensions": + DimensionsElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "data": + DataElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/Schedule.cs b/src/Hl7.Fhir.R4/Model/Generated/Schedule.cs index a2eac3c72c..c813a79132 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/Schedule.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/Schedule.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -339,6 +339,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "active": + ActiveElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "serviceCategory": + ServiceCategory = (List)value; + return this; + case "serviceType": + ServiceType = (List)value; + return this; + case "specialty": + Specialty = (List)value; + return this; + case "actor": + Actor = (List)value; + return this; + case "planningHorizon": + PlanningHorizon = (Hl7.Fhir.Model.Period)value; + return this; + case "comment": + CommentElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/SearchParameter.cs b/src/Hl7.Fhir.R4/Model/Generated/SearchParameter.cs index b6d3a5efc4..0b35c901bd 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/SearchParameter.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/SearchParameter.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -410,6 +410,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "definition": + DefinitionElement = (Hl7.Fhir.Model.Canonical)value; + return this; + case "expression": + ExpressionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1461,6 +1477,94 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "derivedFrom": + DerivedFromElement = (Hl7.Fhir.Model.Canonical)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "code": + CodeElement = (Hl7.Fhir.Model.Code)value; + return this; + case "base": + BaseElement = (List>)value; + return this; + case "type": + TypeElement = (Code)value; + return this; + case "expression": + ExpressionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "xpath": + XpathElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "xpathUsage": + XpathUsageElement = (Code)value; + return this; + case "target": + TargetElement = (List>)value; + return this; + case "multipleOr": + MultipleOrElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "multipleAnd": + MultipleAndElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "comparator": + ComparatorElement = (List>)value; + return this; + case "modifier": + ModifierElement = (List>)value; + return this; + case "chain": + ChainElement = (List)value; + return this; + case "component": + Component = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/ServiceRequest.cs b/src/Hl7.Fhir.R4/Model/Generated/ServiceRequest.cs index 0c39f7415c..8aaf552f2e 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/ServiceRequest.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/ServiceRequest.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -1033,6 +1033,115 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "instantiatesCanonical": + InstantiatesCanonicalElement = (List)value; + return this; + case "instantiatesUri": + InstantiatesUriElement = (List)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "replaces": + Replaces = (List)value; + return this; + case "requisition": + Requisition = (Hl7.Fhir.Model.Identifier)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "intent": + IntentElement = (Code)value; + return this; + case "category": + Category = (List)value; + return this; + case "priority": + PriorityElement = (Code)value; + return this; + case "doNotPerform": + DoNotPerformElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "orderDetail": + OrderDetail = (List)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.DataType)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "occurrence": + Occurrence = (Hl7.Fhir.Model.DataType)value; + return this; + case "asNeeded": + AsNeeded = (Hl7.Fhir.Model.DataType)value; + return this; + case "authoredOn": + AuthoredOnElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "requester": + Requester = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "performerType": + PerformerType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "performer": + Performer = (List)value; + return this; + case "locationCode": + LocationCode = (List)value; + return this; + case "locationReference": + LocationReference = (List)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "reasonReference": + ReasonReference = (List)value; + return this; + case "insurance": + Insurance = (List)value; + return this; + case "supportingInfo": + SupportingInfo = (List)value; + return this; + case "specimen": + Specimen = (List)value; + return this; + case "bodySite": + BodySite = (List)value; + return this; + case "note": + Note = (List)value; + return this; + case "patientInstruction": + PatientInstructionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "relevantHistory": + RelevantHistory = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/Slot.cs b/src/Hl7.Fhir.R4/Model/Generated/Slot.cs index f81f1a0078..92ecd95072 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/Slot.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/Slot.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -502,6 +502,49 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "serviceCategory": + ServiceCategory = (List)value; + return this; + case "serviceType": + ServiceType = (List)value; + return this; + case "specialty": + Specialty = (List)value; + return this; + case "appointmentType": + AppointmentType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "schedule": + Schedule = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "start": + StartElement = (Hl7.Fhir.Model.Instant)value; + return this; + case "end": + EndElement = (Hl7.Fhir.Model.Instant)value; + return this; + case "overbooked": + OverbookedElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "comment": + CommentElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/Specimen.cs b/src/Hl7.Fhir.R4/Model/Generated/Specimen.cs index 403ae85669..581c261fe8 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/Specimen.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/Specimen.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -333,6 +333,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "collector": + Collector = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "collected": + Collected = (Hl7.Fhir.Model.DataType)value; + return this; + case "duration": + Duration = (Hl7.Fhir.Model.Duration)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "method": + Method = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "bodySite": + BodySite = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "fastingStatus": + FastingStatus = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -539,6 +570,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "procedure": + Procedure = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "additive": + Additive = (List)value; + return this; + case "time": + Time = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -784,6 +837,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "capacity": + Capacity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "specimenQuantity": + SpecimenQuantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "additive": + Additive = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1195,6 +1276,55 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "accessionIdentifier": + AccessionIdentifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "receivedTime": + ReceivedTimeElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "parent": + Parent = (List)value; + return this; + case "request": + Request = (List)value; + return this; + case "collection": + Collection = (Hl7.Fhir.Model.Specimen.CollectionComponent)value; + return this; + case "processing": + Processing = (List)value; + return this; + case "container": + Container = (List)value; + return this; + case "condition": + Condition = (List)value; + return this; + case "note": + Note = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/SpecimenDefinition.cs b/src/Hl7.Fhir.R4/Model/Generated/SpecimenDefinition.cs index 9bed378fc6..f17be3ea35 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/SpecimenDefinition.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/SpecimenDefinition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -394,6 +394,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "isDerived": + IsDerivedElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "preference": + PreferenceElement = (Code)value; + return this; + case "container": + Container = (Hl7.Fhir.Model.SpecimenDefinition.ContainerComponent)value; + return this; + case "requirement": + RequirementElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "retentionTime": + RetentionTime = (Hl7.Fhir.Model.Duration)value; + return this; + case "rejectionCriterion": + RejectionCriterion = (List)value; + return this; + case "handling": + Handling = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -700,6 +734,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "material": + Material = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "cap": + Cap = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "capacity": + Capacity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "minimumVolume": + MinimumVolume = (Hl7.Fhir.Model.DataType)value; + return this; + case "additive": + Additive = (List)value; + return this; + case "preparation": + PreparationElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -825,6 +893,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "additive": + Additive = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1020,6 +1101,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "temperatureQualifier": + TemperatureQualifier = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "temperatureRange": + TemperatureRange = (Hl7.Fhir.Model.Range)value; + return this; + case "maxDuration": + MaxDuration = (Hl7.Fhir.Model.Duration)value; + return this; + case "instruction": + InstructionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1250,6 +1353,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "typeCollected": + TypeCollected = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "patientPreparation": + PatientPreparation = (List)value; + return this; + case "timeAspect": + TimeAspectElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "collection": + Collection = (List)value; + return this; + case "typeTested": + TypeTested = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/StructureMap.cs b/src/Hl7.Fhir.R4/Model/Generated/StructureMap.cs index 8b663906cf..41c775f9f0 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/StructureMap.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/StructureMap.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -593,6 +593,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.Canonical)value; + return this; + case "mode": + ModeElement = (Code)value; + return this; + case "alias": + AliasElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "documentation": + DocumentationElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -892,6 +914,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.Id)value; + return this; + case "extends": + ExtendsElement = (Hl7.Fhir.Model.Id)value; + return this; + case "typeMode": + TypeModeElement = (Code)value; + return this; + case "documentation": + DocumentationElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "input": + Input = (List)value; + return this; + case "rule": + Rule = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1150,6 +1200,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.Id)value; + return this; + case "type": + TypeElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "mode": + ModeElement = (Code)value; + return this; + case "documentation": + DocumentationElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1409,6 +1481,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.Id)value; + return this; + case "source": + Source = (List)value; + return this; + case "target": + Target = (List)value; + return this; + case "rule": + Rule = (List)value; + return this; + case "dependent": + Dependent = (List)value; + return this; + case "documentation": + DocumentationElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1919,6 +2019,49 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "context": + ContextElement = (Hl7.Fhir.Model.Id)value; + return this; + case "min": + MinElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "max": + MaxElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "type": + TypeElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "defaultValue": + DefaultValue = (Hl7.Fhir.Model.DataType)value; + return this; + case "element": + ElementElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "listMode": + ListModeElement = (Code)value; + return this; + case "variable": + VariableElement = (Hl7.Fhir.Model.Id)value; + return this; + case "condition": + ConditionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "check": + CheckElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "logMessage": + LogMessageElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2320,6 +2463,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "context": + ContextElement = (Hl7.Fhir.Model.Id)value; + return this; + case "contextType": + ContextTypeElement = (Code)value; + return this; + case "element": + ElementElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "variable": + VariableElement = (Hl7.Fhir.Model.Id)value; + return this; + case "listMode": + ListModeElement = (List>)value; + return this; + case "listRuleId": + ListRuleIdElement = (Hl7.Fhir.Model.Id)value; + return this; + case "transform": + TransformElement = (Code)value; + return this; + case "parameter": + Parameter = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2440,6 +2617,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2609,6 +2799,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.Id)value; + return this; + case "variable": + VariableElement = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3294,6 +3500,70 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "structure": + Structure = (List)value; + return this; + case "import": + ImportElement = (List)value; + return this; + case "group": + Group = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/Subscription.cs b/src/Hl7.Fhir.R4/Model/Generated/Subscription.cs index ed2ce3056b..2922ca1a45 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/Subscription.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/Subscription.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -378,6 +378,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "endpoint": + EndpointElement = (Hl7.Fhir.Model.FhirUrl)value; + return this; + case "payload": + PayloadElement = (Hl7.Fhir.Model.Code)value; + return this; + case "header": + HeaderElement = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -700,6 +722,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "status": + StatusElement = (Code)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "end": + EndElement = (Hl7.Fhir.Model.Instant)value; + return this; + case "reason": + ReasonElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "criteria": + CriteriaElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "error": + ErrorElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "channel": + Channel = (Hl7.Fhir.Model.Subscription.ChannelComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/Substance.cs b/src/Hl7.Fhir.R4/Model/Generated/Substance.cs index aa80f3f379..622ab24197 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/Substance.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/Substance.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -249,6 +249,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "expiry": + ExpiryElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -390,6 +409,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "quantity": + Quantity = (Hl7.Fhir.Model.Ratio)value; + return this; + case "substance": + Substance = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -663,6 +698,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "category": + Category = (List)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "instance": + Instance = (List)value; + return this; + case "ingredient": + Ingredient = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/SubstanceAmount.cs b/src/Hl7.Fhir.R4/Model/Generated/SubstanceAmount.cs index 9cb6a6bda8..f42543412b 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/SubstanceAmount.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/SubstanceAmount.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -179,6 +179,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "lowLimit": + LowLimit = (Hl7.Fhir.Model.Quantity)value; + return this; + case "highLimit": + HighLimit = (Hl7.Fhir.Model.Quantity)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -359,6 +375,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "amount": + Amount = (Hl7.Fhir.Model.DataType)value; + return this; + case "amountType": + AmountType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "amountText": + AmountTextElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "referenceRange": + ReferenceRange = (Hl7.Fhir.Model.SubstanceAmount.ReferenceRangeComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/SubstanceNucleicAcid.cs b/src/Hl7.Fhir.R4/Model/Generated/SubstanceNucleicAcid.cs index 046e3b9224..991db06dd9 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/SubstanceNucleicAcid.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/SubstanceNucleicAcid.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -361,6 +361,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "subunit": + SubunitElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "sequence": + SequenceElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "length": + LengthElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "sequenceAttachment": + SequenceAttachment = (Hl7.Fhir.Model.Attachment)value; + return this; + case "fivePrime": + FivePrime = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "threePrime": + ThreePrime = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "linkage": + Linkage = (List)value; + return this; + case "sugar": + Sugar = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -595,6 +629,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "connectivity": + ConnectivityElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "residueSite": + ResidueSiteElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -786,6 +842,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "residueSite": + ResidueSiteElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1005,6 +1080,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequenceType": + SequenceType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "numberOfSubunits": + NumberOfSubunitsElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "areaOfHybridisation": + AreaOfHybridisationElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "oligoNucleotideType": + OligoNucleotideType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subunit": + Subunit = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/SubstancePolymer.cs b/src/Hl7.Fhir.R4/Model/Generated/SubstancePolymer.cs index 6023bba240..19f186e695 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/SubstancePolymer.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/SubstancePolymer.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -180,6 +180,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "ratioType": + RatioType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "startingMaterial": + StartingMaterial = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -372,6 +388,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "material": + Material = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "isDefining": + IsDefiningElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "amount": + Amount = (Hl7.Fhir.Model.SubstanceAmount)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -585,6 +623,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "numberOfUnits": + NumberOfUnitsElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "averageMolecularFormula": + AverageMolecularFormulaElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "repeatUnitAmountType": + RepeatUnitAmountType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "repeatUnit": + RepeatUnit = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -802,6 +862,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "orientationOfPolymerisation": + OrientationOfPolymerisation = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "repeatUnit": + RepeatUnitElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "amount": + Amount = (Hl7.Fhir.Model.SubstanceAmount)value; + return this; + case "degreeOfPolymerisation": + DegreeOfPolymerisation = (List)value; + return this; + case "structuralRepresentation": + StructuralRepresentation = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -937,6 +1022,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "degree": + Degree = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "amount": + Amount = (Hl7.Fhir.Model.SubstanceAmount)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1108,6 +1209,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "representation": + RepresentationElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "attachment": + Attachment = (Hl7.Fhir.Model.Attachment)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1333,6 +1453,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "class": + Class = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "geometry": + Geometry = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "copolymerConnectivity": + CopolymerConnectivity = (List)value; + return this; + case "modification": + ModificationElement = (List)value; + return this; + case "monomerSet": + MonomerSet = (List)value; + return this; + case "repeat": + Repeat = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/SubstanceProtein.cs b/src/Hl7.Fhir.R4/Model/Generated/SubstanceProtein.cs index 8be42996dc..86a3766009 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/SubstanceProtein.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/SubstanceProtein.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -395,6 +395,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "subunit": + SubunitElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "sequence": + SequenceElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "length": + LengthElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "sequenceAttachment": + SequenceAttachment = (Hl7.Fhir.Model.Attachment)value; + return this; + case "nTerminalModificationId": + NTerminalModificationId = (Hl7.Fhir.Model.Identifier)value; + return this; + case "nTerminalModification": + NTerminalModificationElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "cTerminalModificationId": + CTerminalModificationId = (Hl7.Fhir.Model.Identifier)value; + return this; + case "cTerminalModification": + CTerminalModificationElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -599,6 +633,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequenceType": + SequenceType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "numberOfSubunits": + NumberOfSubunitsElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "disulfideLinkage": + DisulfideLinkageElement = (List)value; + return this; + case "subunit": + Subunit = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/SubstanceReferenceInformation.cs b/src/Hl7.Fhir.R4/Model/Generated/SubstanceReferenceInformation.cs index c020e3c7fe..0293b7f7a3 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/SubstanceReferenceInformation.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/SubstanceReferenceInformation.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -203,6 +203,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "geneSequenceOrigin": + GeneSequenceOrigin = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "gene": + Gene = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "source": + Source = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -360,6 +379,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "element": + Element = (Hl7.Fhir.Model.Identifier)value; + return this; + case "source": + Source = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -539,6 +577,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "domain": + Domain = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "classification": + Classification = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subtype": + Subtype = (List)value; + return this; + case "source": + Source = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -804,6 +864,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "target": + Target = (Hl7.Fhir.Model.Identifier)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "interaction": + Interaction = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "organism": + Organism = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "organismType": + OrganismType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "amount": + Amount = (Hl7.Fhir.Model.DataType)value; + return this; + case "amountType": + AmountType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "source": + Source = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1013,6 +1107,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "comment": + CommentElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "gene": + Gene = (List)value; + return this; + case "geneElement": + GeneElement = (List)value; + return this; + case "classification": + Classification = (List)value; + return this; + case "target": + Target = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/SubstanceSourceMaterial.cs b/src/Hl7.Fhir.R4/Model/Generated/SubstanceSourceMaterial.cs index 8e7da52be0..6d6da390d1 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/SubstanceSourceMaterial.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/SubstanceSourceMaterial.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -197,6 +197,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "fraction": + FractionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "materialType": + MaterialType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -474,6 +490,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "family": + Family = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "genus": + Genus = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "species": + Species = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "intraspecificType": + IntraspecificType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "intraspecificDescription": + IntraspecificDescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "author": + Author = (List)value; + return this; + case "hybrid": + Hybrid = (Hl7.Fhir.Model.SubstanceSourceMaterial.HybridComponent)value; + return this; + case "organismGeneral": + OrganismGeneral = (Hl7.Fhir.Model.SubstanceSourceMaterial.OrganismGeneralComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -630,6 +680,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "authorType": + AuthorType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "authorDescription": + AuthorDescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -897,6 +963,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "maternalOrganismId": + MaternalOrganismIdElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "maternalOrganismName": + MaternalOrganismNameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "paternalOrganismId": + PaternalOrganismIdElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "paternalOrganismName": + PaternalOrganismNameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "hybridType": + HybridType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1074,6 +1165,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "kingdom": + Kingdom = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "phylum": + Phylum = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "class": + Class = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "order": + Order = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1208,6 +1321,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "part": + Part = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "partLocation": + PartLocation = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1617,6 +1746,55 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sourceMaterialClass": + SourceMaterialClass = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "sourceMaterialType": + SourceMaterialType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "sourceMaterialState": + SourceMaterialState = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "organismId": + OrganismId = (Hl7.Fhir.Model.Identifier)value; + return this; + case "organismName": + OrganismNameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "parentSubstanceId": + ParentSubstanceId = (List)value; + return this; + case "parentSubstanceName": + ParentSubstanceNameElement = (List)value; + return this; + case "countryOfOrigin": + CountryOfOrigin = (List)value; + return this; + case "geographicalLocation": + GeographicalLocationElement = (List)value; + return this; + case "developmentStage": + DevelopmentStage = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "fractionDescription": + FractionDescription = (List)value; + return this; + case "organism": + Organism = (Hl7.Fhir.Model.SubstanceSourceMaterial.OrganismComponent)value; + return this; + case "partDescription": + PartDescription = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/SubstanceSpecification.cs b/src/Hl7.Fhir.R4/Model/Generated/SubstanceSpecification.cs index 66bc42b8f5..152fa1c0c5 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/SubstanceSpecification.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/SubstanceSpecification.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -322,6 +322,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "role": + Role = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "stereochemistry": + Stereochemistry = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "opticalActivity": + OpticalActivity = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "molecularFormula": + MolecularFormulaElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "amount": + Amount = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -545,6 +576,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "parameters": + ParametersElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "definingSubstance": + DefiningSubstance = (Hl7.Fhir.Model.DataType)value; + return this; + case "amount": + Amount = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -847,6 +903,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "stereochemistry": + Stereochemistry = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "opticalActivity": + OpticalActivity = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "molecularFormula": + MolecularFormulaElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "molecularFormulaByMoiety": + MolecularFormulaByMoietyElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "isotope": + Isotope = (List)value; + return this; + case "molecularWeight": + MolecularWeight = (Hl7.Fhir.Model.SubstanceSpecification.MolecularWeightComponent)value; + return this; + case "source": + Source = (List)value; + return this; + case "representation": + Representation = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1048,6 +1138,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "name": + Name = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "substitution": + Substitution = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "halfLife": + HalfLife = (Hl7.Fhir.Model.Quantity)value; + return this; + case "molecularWeight": + MolecularWeight = (Hl7.Fhir.Model.SubstanceSpecification.MolecularWeightComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1204,6 +1319,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "method": + Method = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "amount": + Amount = (Hl7.Fhir.Model.Quantity)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1376,6 +1510,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "representation": + RepresentationElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "attachment": + Attachment = (Hl7.Fhir.Model.Attachment)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1611,6 +1764,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "status": + Status = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "statusDate": + StatusDateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "comment": + CommentElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "source": + Source = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1981,6 +2159,49 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "status": + Status = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "preferred": + PreferredElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "language": + Language = (List)value; + return this; + case "domain": + Domain = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "synonym": + Synonym = (List)value; + return this; + case "translation": + Translation = (List)value; + return this; + case "official": + Official = (List)value; + return this; + case "source": + Source = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2161,6 +2382,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "authority": + Authority = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "status": + Status = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2425,6 +2665,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "substance": + Substance = (Hl7.Fhir.Model.DataType)value; + return this; + case "relationship": + Relationship = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "isDefining": + IsDefiningElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "amount": + Amount = (Hl7.Fhir.Model.DataType)value; + return this; + case "amountRatioLowLimit": + AmountRatioLowLimit = (Hl7.Fhir.Model.Ratio)value; + return this; + case "amountType": + AmountType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "source": + Source = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2962,6 +3233,73 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "status": + Status = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "domain": + Domain = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "source": + Source = (List)value; + return this; + case "comment": + CommentElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "moiety": + Moiety = (List)value; + return this; + case "property": + Property = (List)value; + return this; + case "referenceInformation": + ReferenceInformation = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "structure": + Structure = (Hl7.Fhir.Model.SubstanceSpecification.StructureComponent)value; + return this; + case "code": + Code = (List)value; + return this; + case "name": + Name = (List)value; + return this; + case "molecularWeight": + MolecularWeight = (List)value; + return this; + case "relationship": + Relationship = (List)value; + return this; + case "nucleicAcid": + NucleicAcid = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "polymer": + Polymer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "protein": + Protein = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "sourceMaterial": + SourceMaterial = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/SupplyDelivery.cs b/src/Hl7.Fhir.R4/Model/Generated/SupplyDelivery.cs index cf25892f8b..507718aae8 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/SupplyDelivery.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/SupplyDelivery.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -245,6 +245,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "item": + Item = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -596,6 +612,49 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "partOf": + PartOf = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "suppliedItem": + SuppliedItem = (Hl7.Fhir.Model.SupplyDelivery.SuppliedItemComponent)value; + return this; + case "occurrence": + Occurrence = (Hl7.Fhir.Model.DataType)value; + return this; + case "supplier": + Supplier = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "destination": + Destination = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "receiver": + Receiver = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/SupplyRequest.cs b/src/Hl7.Fhir.R4/Model/Generated/SupplyRequest.cs index 356a8b675b..99296f6508 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/SupplyRequest.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/SupplyRequest.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -240,6 +240,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -719,6 +735,61 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "priority": + PriorityElement = (Code)value; + return this; + case "item": + Item = (Hl7.Fhir.Model.DataType)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "parameter": + Parameter = (List)value; + return this; + case "occurrence": + Occurrence = (Hl7.Fhir.Model.DataType)value; + return this; + case "authoredOn": + AuthoredOnElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "requester": + Requester = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "supplier": + Supplier = (List)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "reasonReference": + ReasonReference = (List)value; + return this; + case "deliverFrom": + DeliverFrom = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "deliverTo": + DeliverTo = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/Task.cs b/src/Hl7.Fhir.R4/Model/Generated/Task.cs index 621ec46d04..0c676b1699 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/Task.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/Task.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -370,6 +370,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "repetitions": + RepetitionsElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "recipient": + Recipient = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -511,6 +530,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -651,6 +686,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1571,6 +1622,109 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "instantiatesCanonical": + InstantiatesCanonicalElement = (Hl7.Fhir.Model.Canonical)value; + return this; + case "instantiatesUri": + InstantiatesUriElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "groupIdentifier": + GroupIdentifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "partOf": + PartOf = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "statusReason": + StatusReason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "businessStatus": + BusinessStatus = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "intent": + IntentElement = (Code)value; + return this; + case "priority": + PriorityElement = (Code)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "focus": + Focus = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "for": + For = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "executionPeriod": + ExecutionPeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "authoredOn": + AuthoredOnElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "lastModified": + LastModifiedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "requester": + Requester = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "performerType": + PerformerType = (List)value; + return this; + case "owner": + Owner = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "location": + Location = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "reasonCode": + ReasonCode = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "reasonReference": + ReasonReference = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "insurance": + Insurance = (List)value; + return this; + case "note": + Note = (List)value; + return this; + case "relevantHistory": + RelevantHistory = (List)value; + return this; + case "restriction": + Restriction = (Hl7.Fhir.Model.Task.RestrictionComponent)value; + return this; + case "input": + Input = (List)value; + return this; + case "output": + Output = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/Template-Bindings.cs b/src/Hl7.Fhir.R4/Model/Generated/Template-Bindings.cs index 1b1247d103..e874d0991c 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/Template-Bindings.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/Template-Bindings.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using Hl7.Fhir.Utility; diff --git a/src/Hl7.Fhir.R4/Model/Generated/Template-ModelInfo.cs b/src/Hl7.Fhir.R4/Model/Generated/Template-ModelInfo.cs index 7a5a17d4e9..5a3b413a0f 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/Template-ModelInfo.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/Template-ModelInfo.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; diff --git a/src/Hl7.Fhir.R4/Model/Generated/TerminologyCapabilities.cs b/src/Hl7.Fhir.R4/Model/Generated/TerminologyCapabilities.cs index eae89942d6..6cda7dd039 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/TerminologyCapabilities.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/TerminologyCapabilities.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -244,6 +244,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -416,6 +432,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUrl)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -610,6 +642,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "uri": + UriElement = (Hl7.Fhir.Model.Canonical)value; + return this; + case "version": + Version = (List)value; + return this; + case "subsumption": + SubsumptionElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -924,6 +975,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + CodeElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "isDefault": + IsDefaultElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "compositional": + CompositionalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "language": + LanguageElement = (List)value; + return this; + case "filter": + Filter = (List)value; + return this; + case "property": + PropertyElement = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1098,6 +1177,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + CodeElement = (Hl7.Fhir.Model.Code)value; + return this; + case "op": + OpElement = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1366,6 +1461,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "hierarchical": + HierarchicalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "paging": + PagingElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "incomplete": + IncompleteElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "parameter": + Parameter = (List)value; + return this; + case "textFilter": + TextFilterElement = (Hl7.Fhir.Model.Markdown)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1538,6 +1658,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.Code)value; + return this; + case "documentation": + DocumentationElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1668,6 +1804,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "translations": + TranslationsElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1797,6 +1946,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "needsMap": + NeedsMapElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1928,6 +2090,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "translation": + TranslationElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2773,6 +2948,88 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "kind": + KindElement = (Code)value; + return this; + case "software": + Software = (Hl7.Fhir.Model.TerminologyCapabilities.SoftwareComponent)value; + return this; + case "implementation": + Implementation = (Hl7.Fhir.Model.TerminologyCapabilities.ImplementationComponent)value; + return this; + case "lockedDate": + LockedDateElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "codeSystem": + CodeSystem = (List)value; + return this; + case "expansion": + Expansion = (Hl7.Fhir.Model.TerminologyCapabilities.ExpansionComponent)value; + return this; + case "codeSearch": + CodeSearchElement = (Code)value; + return this; + case "validateCode": + ValidateCode = (Hl7.Fhir.Model.TerminologyCapabilities.ValidateCodeComponent)value; + return this; + case "translation": + Translation = (Hl7.Fhir.Model.TerminologyCapabilities.TranslationComponent)value; + return this; + case "closure": + Closure = (Hl7.Fhir.Model.TerminologyCapabilities.ClosureComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/TestReport.cs b/src/Hl7.Fhir.R4/Model/Generated/TestReport.cs index 11eec8b998..3ff0af3ed6 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/TestReport.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/TestReport.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -397,6 +397,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "uri": + UriElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "display": + DisplayElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -510,6 +529,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "action": + Action = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -645,6 +677,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "operation": + Operation = (Hl7.Fhir.Model.TestReport.OperationComponent)value; + return this; + case "assert": + Assert = (Hl7.Fhir.Model.TestReport.AssertComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -858,6 +906,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "result": + ResultElement = (Code)value; + return this; + case "message": + MessageElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "detail": + DetailElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1072,6 +1139,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "result": + ResultElement = (Code)value; + return this; + case "message": + MessageElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "detail": + DetailElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1263,6 +1349,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "action": + Action = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1400,6 +1505,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "operation": + Operation = (Hl7.Fhir.Model.TestReport.OperationComponent)value; + return this; + case "assert": + Assert = (Hl7.Fhir.Model.TestReport.AssertComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1515,6 +1636,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "action": + Action = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1630,6 +1764,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "operation": + Operation = (Hl7.Fhir.Model.TestReport.OperationComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2078,6 +2225,52 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "testScript": + TestScript = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "result": + ResultElement = (Code)value; + return this; + case "score": + ScoreElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "tester": + TesterElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "issued": + IssuedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "participant": + Participant = (List)value; + return this; + case "setup": + Setup = (Hl7.Fhir.Model.TestReport.SetupComponent)value; + return this; + case "test": + Test = (List)value; + return this; + case "teardown": + Teardown = (Hl7.Fhir.Model.TestReport.TeardownComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/TestScript.cs b/src/Hl7.Fhir.R4/Model/Generated/TestScript.cs index 17313b91f8..7145881272 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/TestScript.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/TestScript.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -439,6 +439,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "index": + IndexElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "profile": + Profile = (Hl7.Fhir.Model.Coding)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -596,6 +612,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "index": + IndexElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "profile": + Profile = (Hl7.Fhir.Model.Coding)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -733,6 +765,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "link": + Link = (List)value; + return this; + case "capability": + Capability = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -905,6 +953,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1277,6 +1341,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "required": + RequiredElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "validated": + ValidatedElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "origin": + OriginElement = (List)value; + return this; + case "destination": + DestinationElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "link": + LinkElement = (List)value; + return this; + case "capabilities": + CapabilitiesElement = (Hl7.Fhir.Model.Canonical)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1478,6 +1573,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "autocreate": + AutocreateElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "autodelete": + AutodeleteElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "resource": + Resource = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1886,6 +2000,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "defaultValue": + DefaultValueElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "expression": + ExpressionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "headerField": + HeaderFieldElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "hint": + HintElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "path": + PathElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "sourceId": + SourceIdElement = (Hl7.Fhir.Model.Id)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2004,6 +2152,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "action": + Action = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2139,6 +2300,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "operation": + Operation = (Hl7.Fhir.Model.TestScript.OperationComponent)value; + return this; + case "assert": + Assert = (Hl7.Fhir.Model.TestScript.AssertComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2868,6 +3045,67 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.Coding)value; + return this; + case "resource": + ResourceElement = (Code)value; + return this; + case "label": + LabelElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "accept": + AcceptElement = (Hl7.Fhir.Model.Code)value; + return this; + case "contentType": + ContentTypeElement = (Hl7.Fhir.Model.Code)value; + return this; + case "destination": + DestinationElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "encodeRequestUrl": + EncodeRequestUrlElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "method": + MethodElement = (Code)value; + return this; + case "origin": + OriginElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "params": + ParamsElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "requestHeader": + RequestHeader = (List)value; + return this; + case "requestId": + RequestIdElement = (Hl7.Fhir.Model.Id)value; + return this; + case "responseId": + ResponseIdElement = (Hl7.Fhir.Model.Id)value; + return this; + case "sourceId": + SourceIdElement = (Hl7.Fhir.Model.Id)value; + return this; + case "targetId": + TargetIdElement = (Hl7.Fhir.Model.Id)value; + return this; + case "url": + UrlElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3057,6 +3295,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "field": + FieldElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "value": + ValueElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -4021,6 +4275,82 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "label": + LabelElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "direction": + DirectionElement = (Code)value; + return this; + case "compareToSourceId": + CompareToSourceIdElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "compareToSourceExpression": + CompareToSourceExpressionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "compareToSourcePath": + CompareToSourcePathElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contentType": + ContentTypeElement = (Hl7.Fhir.Model.Code)value; + return this; + case "expression": + ExpressionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "headerField": + HeaderFieldElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "minimumId": + MinimumIdElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "navigationLinks": + NavigationLinksElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "operator": + OperatorElement = (Code)value; + return this; + case "path": + PathElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "requestMethod": + RequestMethodElement = (Code)value; + return this; + case "requestURL": + RequestURLElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "resource": + ResourceElement = (Code)value; + return this; + case "response": + ResponseElement = (Code)value; + return this; + case "responseCode": + ResponseCodeElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "sourceId": + SourceIdElement = (Hl7.Fhir.Model.Id)value; + return this; + case "validateProfileId": + ValidateProfileIdElement = (Hl7.Fhir.Model.Id)value; + return this; + case "value": + ValueElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "warningOnly": + WarningOnlyElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -4231,6 +4561,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "action": + Action = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -4368,6 +4717,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "operation": + Operation = (Hl7.Fhir.Model.TestScript.OperationComponent)value; + return this; + case "assert": + Assert = (Hl7.Fhir.Model.TestScript.AssertComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -4483,6 +4848,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "action": + Action = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -4598,6 +4976,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "operation": + Operation = (Hl7.Fhir.Model.TestScript.OperationComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -5394,6 +5785,88 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "origin": + Origin = (List)value; + return this; + case "destination": + Destination = (List)value; + return this; + case "metadata": + Metadata = (Hl7.Fhir.Model.TestScript.MetadataComponent)value; + return this; + case "fixture": + Fixture = (List)value; + return this; + case "profile": + Profile = (List)value; + return this; + case "variable": + Variable = (List)value; + return this; + case "setup": + Setup = (Hl7.Fhir.Model.TestScript.SetupComponent)value; + return this; + case "test": + Test = (List)value; + return this; + case "teardown": + Teardown = (Hl7.Fhir.Model.TestScript.TeardownComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/Timing.cs b/src/Hl7.Fhir.R4/Model/Generated/Timing.cs index 1eb37bcb93..81685daa82 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/Timing.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/Timing.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -947,6 +947,61 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "bounds": + Bounds = (Hl7.Fhir.Model.DataType)value; + return this; + case "count": + CountElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "countMax": + CountMaxElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "duration": + DurationElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "durationMax": + DurationMaxElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "durationUnit": + DurationUnitElement = (Code)value; + return this; + case "frequency": + FrequencyElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "frequencyMax": + FrequencyMaxElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "period": + PeriodElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "periodMax": + PeriodMaxElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "periodUnit": + PeriodUnitElement = (Code)value; + return this; + case "dayOfWeek": + DayOfWeekElement = (List>)value; + return this; + case "timeOfDay": + TimeOfDayElement = (List)value; + return this; + case "when": + WhenElement = (List>)value; + return this; + case "offset": + OffsetElement = (Hl7.Fhir.Model.UnsignedInt)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1119,6 +1174,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "event": + EventElement = (List)value; + return this; + case "repeat": + Repeat = (Hl7.Fhir.Model.Timing.RepeatComponent)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/TriggerDefinition.cs b/src/Hl7.Fhir.R4/Model/Generated/TriggerDefinition.cs index 9bf60cc5ac..70fcd1c866 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/TriggerDefinition.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/TriggerDefinition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -333,6 +333,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "timing": + Timing = (Hl7.Fhir.Model.DataType)value; + return this; + case "data": + Data = (List)value; + return this; + case "condition": + Condition = (Hl7.Fhir.Model.Expression)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/VerificationResult.cs b/src/Hl7.Fhir.R4/Model/Generated/VerificationResult.cs index 267a881c8b..3028c3a90f 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/VerificationResult.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/VerificationResult.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -358,6 +358,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "who": + Who = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "type": + Type = (List)value; + return this; + case "communicationMethod": + CommunicationMethod = (List)value; + return this; + case "validationStatus": + ValidationStatus = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "validationDate": + ValidationDateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "canPushUpdates": + CanPushUpdates = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "pushTypeAvailable": + PushTypeAvailable = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -680,6 +711,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "who": + Who = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "onBehalfOf": + OnBehalfOf = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "communicationMethod": + CommunicationMethod = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "sourceIdentityCertificate": + SourceIdentityCertificateElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "proxyIdentityCertificate": + ProxyIdentityCertificateElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "proxySignature": + ProxySignature = (Hl7.Fhir.Model.Signature)value; + return this; + case "sourceSignature": + SourceSignature = (Hl7.Fhir.Model.Signature)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -860,6 +925,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "organization": + Organization = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "identityCertificate": + IdentityCertificateElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "attestationSignature": + AttestationSignature = (Hl7.Fhir.Model.Signature)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1335,6 +1419,58 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "target": + Target = (List)value; + return this; + case "targetLocation": + TargetLocationElement = (List)value; + return this; + case "need": + Need = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "statusDate": + StatusDateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "validationType": + ValidationType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "validationProcess": + ValidationProcess = (List)value; + return this; + case "frequency": + Frequency = (Hl7.Fhir.Model.Timing)value; + return this; + case "lastPerformed": + LastPerformedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "nextScheduled": + NextScheduledElement = (Hl7.Fhir.Model.Date)value; + return this; + case "failureAction": + FailureAction = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "primarySource": + PrimarySource = (List)value; + return this; + case "attestation": + Attestation = (Hl7.Fhir.Model.VerificationResult.AttestationComponent)value; + return this; + case "validator": + Validator = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/VisionPrescription.cs b/src/Hl7.Fhir.R4/Model/Generated/VisionPrescription.cs index eb9ac955de..1268c01658 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/VisionPrescription.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/VisionPrescription.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 using System; using System.Collections.Generic; @@ -680,6 +680,58 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "product": + Product = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "eye": + EyeElement = (Code)value; + return this; + case "sphere": + SphereElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "cylinder": + CylinderElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "axis": + AxisElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "prism": + Prism = (List)value; + return this; + case "add": + AddElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "power": + PowerElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "backCurve": + BackCurveElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "diameter": + DiameterElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "duration": + Duration = (Hl7.Fhir.Model.Quantity)value; + return this; + case "color": + ColorElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "brand": + BrandElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "note": + Note = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -867,6 +919,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "amount": + AmountElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "base": + BaseElement = (Code)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1182,6 +1250,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "created": + CreatedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "dateWritten": + DateWrittenElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "prescriber": + Prescriber = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "lensSpecification": + LensSpecification = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4/Model/Generated/_GeneratorLog.cs b/src/Hl7.Fhir.R4/Model/Generated/_GeneratorLog.cs index c976588906..ca5df7a228 100644 --- a/src/Hl7.Fhir.R4/Model/Generated/_GeneratorLog.cs +++ b/src/Hl7.Fhir.R4/Model/Generated/_GeneratorLog.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4.expansions#4.0.1, hl7.fhir.r4.core#4.0.1 +// Contents of: hl7.fhir.r4.expansions@4.0.1, hl7.fhir.r4.core@4.0.1 // Generated Shared Enumeration: ActionCardinalityBehavior (http://hl7.org/fhir/ValueSet/action-cardinality-behavior) // Used in model class (resource): PlanDefinition.action.cardinalityBehavior diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Account.cs b/src/Hl7.Fhir.R4B/Model/Generated/Account.cs index d41cb63528..1846f50618 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Account.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Account.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -248,6 +248,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "coverage": + Coverage = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "priority": + PriorityElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -425,6 +441,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "party": + Party = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "onHold": + OnHoldElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -803,6 +838,49 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "subject": + Subject = (List)value; + return this; + case "servicePeriod": + ServicePeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "coverage": + Coverage = (List)value; + return this; + case "owner": + Owner = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "guarantor": + Guarantor = (List)value; + return this; + case "partOf": + PartOf = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/ActivityDefinition.cs b/src/Hl7.Fhir.R4B/Model/Generated/ActivityDefinition.cs index 9551841b64..7adc2af71d 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/ActivityDefinition.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/ActivityDefinition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -307,6 +307,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "role": + Role = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -463,6 +479,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "path": + PathElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "expression": + Expression = (Hl7.Fhir.Model.Expression)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1952,6 +1984,154 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "subtitle": + SubtitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.DataType)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "usage": + UsageElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "approvalDate": + ApprovalDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "lastReviewDate": + LastReviewDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "effectivePeriod": + EffectivePeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "topic": + Topic = (List)value; + return this; + case "author": + Author = (List)value; + return this; + case "editor": + Editor = (List)value; + return this; + case "reviewer": + Reviewer = (List)value; + return this; + case "endorser": + Endorser = (List)value; + return this; + case "relatedArtifact": + RelatedArtifact = (List)value; + return this; + case "library": + LibraryElement = (List)value; + return this; + case "kind": + KindElement = (Code)value; + return this; + case "profile": + ProfileElement = (Hl7.Fhir.Model.Canonical)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "intent": + IntentElement = (Code)value; + return this; + case "priority": + PriorityElement = (Code)value; + return this; + case "doNotPerform": + DoNotPerformElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "timing": + Timing = (Hl7.Fhir.Model.DataType)value; + return this; + case "location": + Location = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "participant": + Participant = (List)value; + return this; + case "product": + Product = (Hl7.Fhir.Model.DataType)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "dosage": + Dosage = (List)value; + return this; + case "bodySite": + BodySite = (List)value; + return this; + case "specimenRequirement": + SpecimenRequirement = (List)value; + return this; + case "observationRequirement": + ObservationRequirement = (List)value; + return this; + case "observationResultRequirement": + ObservationResultRequirement = (List)value; + return this; + case "transform": + TransformElement = (Hl7.Fhir.Model.Canonical)value; + return this; + case "dynamicValue": + DynamicValue = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Address.cs b/src/Hl7.Fhir.R4B/Model/Generated/Address.cs index bccdc4407f..92c31a3108 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Address.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Address.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -572,6 +572,46 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "use": + UseElement = (Code)value; + return this; + case "type": + TypeElement = (Code)value; + return this; + case "text": + TextElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "line": + LineElement = (List)value; + return this; + case "city": + CityElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "district": + DistrictElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "state": + StateElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "postalCode": + PostalCodeElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "country": + CountryElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/AdministrableProductDefinition.cs b/src/Hl7.Fhir.R4B/Model/Generated/AdministrableProductDefinition.cs index e7c0daa384..41afb91c8f 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/AdministrableProductDefinition.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/AdministrableProductDefinition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -208,6 +208,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + case "status": + Status = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -452,6 +471,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "firstDose": + FirstDose = (Hl7.Fhir.Model.Quantity)value; + return this; + case "maxSingleDose": + MaxSingleDose = (Hl7.Fhir.Model.Quantity)value; + return this; + case "maxDosePerDay": + MaxDosePerDay = (Hl7.Fhir.Model.Quantity)value; + return this; + case "maxDosePerTreatmentPeriod": + MaxDosePerTreatmentPeriod = (Hl7.Fhir.Model.Ratio)value; + return this; + case "maxTreatmentPeriod": + MaxTreatmentPeriod = (Hl7.Fhir.Model.Duration)value; + return this; + case "targetSpecies": + TargetSpecies = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -592,6 +642,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "withdrawalPeriod": + WithdrawalPeriod = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -766,6 +832,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "tissue": + Tissue = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.Quantity)value; + return this; + case "supportingInformation": + SupportingInformationElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1091,6 +1176,46 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "formOf": + FormOf = (List)value; + return this; + case "administrableDoseForm": + AdministrableDoseForm = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "unitOfPresentation": + UnitOfPresentation = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "producedFrom": + ProducedFrom = (List)value; + return this; + case "ingredient": + Ingredient = (List)value; + return this; + case "device": + Device = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "property": + Property = (List)value; + return this; + case "routeOfAdministration": + RouteOfAdministration = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/AdverseEvent.cs b/src/Hl7.Fhir.R4B/Model/Generated/AdverseEvent.cs index 491ec6378c..34425784fb 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/AdverseEvent.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/AdverseEvent.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -285,6 +285,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "instance": + Instance = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "causality": + Causality = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -481,6 +497,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "assessment": + Assessment = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "productRelatedness": + ProductRelatednessElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "author": + Author = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "method": + Method = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1087,6 +1125,76 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "actuality": + ActualityElement = (Code)value; + return this; + case "category": + Category = (List)value; + return this; + case "event": + Event = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "detected": + DetectedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "recordedDate": + RecordedDateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "resultingCondition": + ResultingCondition = (List)value; + return this; + case "location": + Location = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "seriousness": + Seriousness = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "severity": + Severity = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "outcome": + Outcome = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "recorder": + Recorder = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "contributor": + Contributor = (List)value; + return this; + case "suspectEntity": + SuspectEntity = (List)value; + return this; + case "subjectMedicalHistory": + SubjectMedicalHistory = (List)value; + return this; + case "referenceDocument": + ReferenceDocument = (List)value; + return this; + case "study": + Study = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Age.cs b/src/Hl7.Fhir.R4B/Model/Generated/Age.cs index 5a33a9b548..a5cb574a20 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Age.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Age.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/AllergyIntolerance.cs b/src/Hl7.Fhir.R4B/Model/Generated/AllergyIntolerance.cs index 4f5bbd3ddf..a8ba67ef83 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/AllergyIntolerance.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/AllergyIntolerance.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -526,6 +526,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "substance": + Substance = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "manifestation": + Manifestation = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "onset": + OnsetElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "severity": + SeverityElement = (Code)value; + return this; + case "exposureRoute": + ExposureRoute = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "note": + Note = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1059,6 +1090,64 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "clinicalStatus": + ClinicalStatus = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "verificationStatus": + VerificationStatus = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "type": + TypeElement = (Code)value; + return this; + case "category": + CategoryElement = (List>)value; + return this; + case "criticality": + CriticalityElement = (Code)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "onset": + Onset = (Hl7.Fhir.Model.DataType)value; + return this; + case "recordedDate": + RecordedDateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "recorder": + Recorder = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "asserter": + Asserter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "lastOccurrence": + LastOccurrenceElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "note": + Note = (List)value; + return this; + case "reaction": + Reaction = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Annotation.cs b/src/Hl7.Fhir.R4B/Model/Generated/Annotation.cs index 39e71642d3..3dc188b365 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Annotation.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Annotation.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -230,6 +230,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "author": + Author = (Hl7.Fhir.Model.DataType)value; + return this; + case "time": + TimeElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "text": + TextElement = (Hl7.Fhir.Model.Markdown)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Appointment.cs b/src/Hl7.Fhir.R4B/Model/Generated/Appointment.cs index 9a35b0622d..73094e11f5 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Appointment.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Appointment.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -388,6 +388,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (List)value; + return this; + case "actor": + Actor = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "required": + RequiredElement = (Code)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1121,6 +1146,82 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "cancelationReason": + CancelationReason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "serviceCategory": + ServiceCategory = (List)value; + return this; + case "serviceType": + ServiceType = (List)value; + return this; + case "specialty": + Specialty = (List)value; + return this; + case "appointmentType": + AppointmentType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "reasonReference": + ReasonReference = (List)value; + return this; + case "priority": + PriorityElement = (Hl7.Fhir.Model.UnsignedInt)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "supportingInformation": + SupportingInformation = (List)value; + return this; + case "start": + StartElement = (Hl7.Fhir.Model.Instant)value; + return this; + case "end": + EndElement = (Hl7.Fhir.Model.Instant)value; + return this; + case "minutesDuration": + MinutesDurationElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "slot": + Slot = (List)value; + return this; + case "created": + CreatedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "comment": + CommentElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "patientInstruction": + PatientInstructionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "participant": + Participant = (List)value; + return this; + case "requestedPeriod": + RequestedPeriod = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/AppointmentResponse.cs b/src/Hl7.Fhir.R4B/Model/Generated/AppointmentResponse.cs index d0277256e0..87f25f913e 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/AppointmentResponse.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/AppointmentResponse.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -376,6 +376,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "appointment": + Appointment = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "start": + StartElement = (Hl7.Fhir.Model.Instant)value; + return this; + case "end": + EndElement = (Hl7.Fhir.Model.Instant)value; + return this; + case "participantType": + ParticipantType = (List)value; + return this; + case "actor": + Actor = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "participantStatus": + ParticipantStatusElement = (Code)value; + return this; + case "comment": + CommentElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/AuditEvent.cs b/src/Hl7.Fhir.R4B/Model/Generated/AuditEvent.cs index cde3e31ee1..2254afbd9d 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/AuditEvent.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/AuditEvent.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -575,6 +575,49 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "role": + Role = (List)value; + return this; + case "who": + Who = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "altId": + AltIdElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "requestor": + RequestorElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "location": + Location = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "policy": + PolicyElement = (List)value; + return this; + case "media": + Media = (Hl7.Fhir.Model.Coding)value; + return this; + case "network": + Network = (Hl7.Fhir.Model.AuditEvent.NetworkComponent)value; + return this; + case "purposeOfUse": + PurposeOfUse = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -757,6 +800,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "address": + AddressElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "type": + TypeElement = (Code)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -937,6 +996,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "site": + SiteElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "observer": + Observer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "type": + Type = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1283,6 +1361,43 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "what": + What = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.Coding)value; + return this; + case "role": + Role = (Hl7.Fhir.Model.Coding)value; + return this; + case "lifecycle": + Lifecycle = (Hl7.Fhir.Model.Coding)value; + return this; + case "securityLabel": + SecurityLabel = (List)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "query": + QueryElement = (Hl7.Fhir.Model.Base64Binary)value; + return this; + case "detail": + Detail = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1447,6 +1562,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1840,6 +1971,49 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.Coding)value; + return this; + case "subtype": + Subtype = (List)value; + return this; + case "action": + ActionElement = (Code)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "recorded": + RecordedElement = (Hl7.Fhir.Model.Instant)value; + return this; + case "outcome": + OutcomeElement = (Code)value; + return this; + case "outcomeDesc": + OutcomeDescElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "purposeOfEvent": + PurposeOfEvent = (List)value; + return this; + case "agent": + Agent = (List)value; + return this; + case "source": + Source = (Hl7.Fhir.Model.AuditEvent.SourceComponent)value; + return this; + case "entity": + Entity = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Basic.cs b/src/Hl7.Fhir.R4B/Model/Generated/Basic.cs index d9c1410a19..b1d548c966 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Basic.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Basic.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -258,6 +258,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "created": + CreatedElement = (Hl7.Fhir.Model.Date)value; + return this; + case "author": + Author = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/BiologicallyDerivedProduct.cs b/src/Hl7.Fhir.R4B/Model/Generated/BiologicallyDerivedProduct.cs index 1c7824ad68..064d8e8078 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/BiologicallyDerivedProduct.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/BiologicallyDerivedProduct.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -301,6 +301,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "collector": + Collector = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "source": + Source = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "collected": + Collected = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -502,6 +521,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "procedure": + Procedure = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "additive": + Additive = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "time": + Time = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -659,6 +700,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "time": + Time = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -889,6 +946,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "temperature": + TemperatureElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "scale": + ScaleElement = (Code)value; + return this; + case "duration": + Duration = (Hl7.Fhir.Model.Period)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1268,6 +1347,49 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "productCategory": + ProductCategoryElement = (Code)value; + return this; + case "productCode": + ProductCode = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "request": + Request = (List)value; + return this; + case "quantity": + QuantityElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "parent": + Parent = (List)value; + return this; + case "collection": + Collection = (Hl7.Fhir.Model.BiologicallyDerivedProduct.CollectionComponent)value; + return this; + case "processing": + Processing = (List)value; + return this; + case "manipulation": + Manipulation = (Hl7.Fhir.Model.BiologicallyDerivedProduct.ManipulationComponent)value; + return this; + case "storage": + Storage = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/BodyStructure.cs b/src/Hl7.Fhir.R4B/Model/Generated/BodyStructure.cs index 4020492f24..3f46cc8b29 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/BodyStructure.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/BodyStructure.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -341,6 +341,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "active": + ActiveElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "morphology": + Morphology = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "location": + Location = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "locationQualifier": + LocationQualifier = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "image": + Image = (List)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/CarePlan.cs b/src/Hl7.Fhir.R4B/Model/Generated/CarePlan.cs index 3a44c075cd..3a43f5d022 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/CarePlan.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/CarePlan.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -412,6 +412,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "outcomeCodeableConcept": + OutcomeCodeableConcept = (List)value; + return this; + case "outcomeReference": + OutcomeReference = (List)value; + return this; + case "progress": + Progress = (List)value; + return this; + case "reference": + Reference = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "detail": + Detail = (Hl7.Fhir.Model.CarePlan.DetailComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1000,6 +1025,67 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "kind": + KindElement = (Code)value; + return this; + case "instantiatesCanonical": + InstantiatesCanonicalElement = (List)value; + return this; + case "instantiatesUri": + InstantiatesUriElement = (List)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "reasonReference": + ReasonReference = (List)value; + return this; + case "goal": + Goal = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "statusReason": + StatusReason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "doNotPerform": + DoNotPerformElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "scheduled": + Scheduled = (Hl7.Fhir.Model.DataType)value; + return this; + case "location": + Location = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "performer": + Performer = (List)value; + return this; + case "product": + Product = (Hl7.Fhir.Model.DataType)value; + return this; + case "dailyAmount": + DailyAmount = (Hl7.Fhir.Model.Quantity)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1746,6 +1832,85 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "instantiatesCanonical": + InstantiatesCanonicalElement = (List)value; + return this; + case "instantiatesUri": + InstantiatesUriElement = (List)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "replaces": + Replaces = (List)value; + return this; + case "partOf": + PartOf = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "intent": + IntentElement = (Code)value; + return this; + case "category": + Category = (List)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "created": + CreatedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "author": + Author = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "contributor": + Contributor = (List)value; + return this; + case "careTeam": + CareTeam = (List)value; + return this; + case "addresses": + Addresses = (List)value; + return this; + case "supportingInfo": + SupportingInfo = (List)value; + return this; + case "goal": + Goal = (List)value; + return this; + case "activity": + Activity = (List)value; + return this; + case "note": + Note = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/CareTeam.cs b/src/Hl7.Fhir.R4B/Model/Generated/CareTeam.cs index d4d54a9d8b..eb8f046c62 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/CareTeam.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/CareTeam.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -273,6 +273,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "role": + Role = (List)value; + return this; + case "member": + Member = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "onBehalfOf": + OnBehalfOf = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -682,6 +704,55 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "category": + Category = (List)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "participant": + Participant = (List)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "reasonReference": + ReasonReference = (List)value; + return this; + case "managingOrganization": + ManagingOrganization = (List)value; + return this; + case "telecom": + Telecom = (List)value; + return this; + case "note": + Note = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/CatalogEntry.cs b/src/Hl7.Fhir.R4B/Model/Generated/CatalogEntry.cs index 4926925430..652fa72fc0 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/CatalogEntry.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/CatalogEntry.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -231,6 +231,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "relationtype": + RelationtypeElement = (Code)value; + return this; + case "item": + Item = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -666,6 +682,55 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "orderable": + OrderableElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "referencedItem": + ReferencedItem = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "additionalIdentifier": + AdditionalIdentifier = (List)value; + return this; + case "classification": + Classification = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "validityPeriod": + ValidityPeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "validTo": + ValidToElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "lastUpdated": + LastUpdatedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "additionalCharacteristic": + AdditionalCharacteristic = (List)value; + return this; + case "additionalClassification": + AdditionalClassification = (List)value; + return this; + case "relatedEntry": + RelatedEntry = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/ChargeItem.cs b/src/Hl7.Fhir.R4B/Model/Generated/ChargeItem.cs index 61654b00b1..e90020f4c2 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/ChargeItem.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/ChargeItem.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -241,6 +241,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "function": + Function = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "actor": + Actor = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1018,6 +1034,94 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "definitionUri": + DefinitionUriElement = (List)value; + return this; + case "definitionCanonical": + DefinitionCanonicalElement = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "partOf": + PartOf = (List)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "context": + Context = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "occurrence": + Occurrence = (Hl7.Fhir.Model.DataType)value; + return this; + case "performer": + Performer = (List)value; + return this; + case "performingOrganization": + PerformingOrganization = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "requestingOrganization": + RequestingOrganization = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "costCenter": + CostCenter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "bodysite": + Bodysite = (List)value; + return this; + case "factorOverride": + FactorOverrideElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "priceOverride": + PriceOverride = (Hl7.Fhir.Model.Money)value; + return this; + case "overrideReason": + OverrideReasonElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "enterer": + Enterer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "enteredDate": + EnteredDateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "reason": + Reason = (List)value; + return this; + case "service": + Service = (List)value; + return this; + case "product": + Product = (Hl7.Fhir.Model.DataType)value; + return this; + case "account": + Account = (List)value; + return this; + case "note": + Note = (List)value; + return this; + case "supportingInformation": + SupportingInformation = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/ChargeItemDefinition.cs b/src/Hl7.Fhir.R4B/Model/Generated/ChargeItemDefinition.cs index f2dc5510fe..c8b40a2b19 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/ChargeItemDefinition.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/ChargeItemDefinition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -261,6 +261,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "language": + LanguageElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "expression": + ExpressionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -399,6 +418,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "applicability": + Applicability = (List)value; + return this; + case "priceComponent": + PriceComponent = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -615,6 +650,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "factor": + FactorElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "amount": + Amount = (Hl7.Fhir.Model.Money)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1448,6 +1505,85 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "derivedFromUri": + DerivedFromUriElement = (List)value; + return this; + case "partOf": + PartOfElement = (List)value; + return this; + case "replaces": + ReplacesElement = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "approvalDate": + ApprovalDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "lastReviewDate": + LastReviewDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "effectivePeriod": + EffectivePeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "instance": + Instance = (List)value; + return this; + case "applicability": + Applicability = (List)value; + return this; + case "propertyGroup": + PropertyGroup = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Citation.cs b/src/Hl7.Fhir.R4B/Model/Generated/Citation.cs index 31aa2d8a75..f19ce29cf6 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Citation.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Citation.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -202,6 +202,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "style": + Style = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "text": + TextElement = (Hl7.Fhir.Model.Markdown)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -337,6 +353,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "classifier": + Classifier = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -511,6 +543,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "activity": + Activity = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "actual": + ActualElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -673,6 +724,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "relationshipType": + RelationshipType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "targetClassifier": + TargetClassifier = (List)value; + return this; + case "target": + Target = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1109,6 +1179,61 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "relatedIdentifier": + RelatedIdentifier = (List)value; + return this; + case "dateAccessed": + DateAccessedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "version": + Version = (Hl7.Fhir.Model.Citation.CitedArtifactVersionComponent)value; + return this; + case "currentState": + CurrentState = (List)value; + return this; + case "statusDate": + StatusDate = (List)value; + return this; + case "title": + Title = (List)value; + return this; + case "abstract": + Abstract = (List)value; + return this; + case "part": + Part = (Hl7.Fhir.Model.Citation.CitedArtifactPartComponent)value; + return this; + case "relatesTo": + RelatesTo = (List)value; + return this; + case "publicationForm": + PublicationForm = (List)value; + return this; + case "webLocation": + WebLocation = (List)value; + return this; + case "classification": + Classification = (List)value; + return this; + case "contributorship": + Contributorship = (Hl7.Fhir.Model.Citation.CitedArtifactContributorshipComponent)value; + return this; + case "note": + Note = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1275,6 +1400,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "value": + ValueElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "baseCitation": + BaseCitation = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1449,6 +1590,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "activity": + Activity = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "actual": + ActualElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1625,6 +1785,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (List)value; + return this; + case "language": + Language = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "text": + TextElement = (Hl7.Fhir.Model.Markdown)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1839,6 +2018,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "language": + Language = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "text": + TextElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2015,6 +2216,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "value": + ValueElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "baseCitation": + BaseCitation = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2177,6 +2397,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "relationshipType": + RelationshipType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "targetClassifier": + TargetClassifier = (List)value; + return this; + case "target": + Target = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2648,6 +2887,49 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "publishedIn": + PublishedIn = (Hl7.Fhir.Model.Citation.CitedArtifactPublicationFormPublishedInComponent)value; + return this; + case "periodicRelease": + PeriodicRelease = (Hl7.Fhir.Model.Citation.CitedArtifactPublicationFormPeriodicReleaseComponent)value; + return this; + case "articleDate": + ArticleDateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "lastRevisionDate": + LastRevisionDateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "language": + Language = (List)value; + return this; + case "accessionNumber": + AccessionNumberElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "pageString": + PageStringElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "firstPage": + FirstPageElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "lastPage": + LastPageElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "pageCount": + PageCountElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2892,6 +3174,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "publisher": + Publisher = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "publisherLocation": + PublisherLocationElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3106,6 +3413,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "citedMedium": + CitedMedium = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "volume": + VolumeElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "issue": + IssueElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "dateOfPublication": + DateOfPublication = (Hl7.Fhir.Model.Citation.CitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3432,6 +3761,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "date": + DateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "year": + YearElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "month": + MonthElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "day": + DayElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "season": + SeasonElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "text": + TextElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3587,6 +3944,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3743,6 +4116,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "classifier": + Classifier = (List)value; + return this; + case "whoClassified": + WhoClassified = (Hl7.Fhir.Model.Citation.CitedArtifactClassificationWhoClassifiedComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3981,6 +4373,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "person": + Person = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "organization": + Organization = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "publisher": + Publisher = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "classifierCopyright": + ClassifierCopyrightElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "freeToShare": + FreeToShareElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -4160,6 +4577,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "complete": + CompleteElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "entry": + Entry = (List)value; + return this; + case "summary": + Summary = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -4587,6 +5023,52 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + Name = (Hl7.Fhir.Model.HumanName)value; + return this; + case "initials": + InitialsElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "collectiveName": + CollectiveNameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "affiliationInfo": + AffiliationInfo = (List)value; + return this; + case "address": + Address = (List)value; + return this; + case "telecom": + Telecom = (List)value; + return this; + case "contributionType": + ContributionType = (List)value; + return this; + case "role": + Role = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "contributionInstance": + ContributionInstance = (List)value; + return this; + case "correspondingContact": + CorrespondingContactElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "listOrder": + ListOrderElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -4790,6 +5272,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "affiliation": + AffiliationElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "role": + RoleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -4943,6 +5444,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "time": + TimeElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -5139,6 +5656,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "style": + Style = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "source": + Source = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "value": + ValueElement = (Hl7.Fhir.Model.Markdown)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -6081,6 +6620,103 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "approvalDate": + ApprovalDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "lastReviewDate": + LastReviewDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "effectivePeriod": + EffectivePeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "author": + Author = (List)value; + return this; + case "editor": + Editor = (List)value; + return this; + case "reviewer": + Reviewer = (List)value; + return this; + case "endorser": + Endorser = (List)value; + return this; + case "summary": + Summary = (List)value; + return this; + case "classification": + Classification = (List)value; + return this; + case "note": + Note = (List)value; + return this; + case "currentState": + CurrentState = (List)value; + return this; + case "statusDate": + StatusDate = (List)value; + return this; + case "relatesTo": + RelatesTo = (List)value; + return this; + case "citedArtifact": + CitedArtifact = (Hl7.Fhir.Model.Citation.CitedArtifactComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Claim.cs b/src/Hl7.Fhir.R4B/Model/Generated/Claim.cs index c0c7ff3665..1d6be4fcaf 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Claim.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Claim.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -211,6 +211,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "claim": + Claim = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "relationship": + Relationship = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "reference": + Reference = (Hl7.Fhir.Model.Identifier)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -352,6 +371,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "party": + Party = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -592,6 +627,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "provider": + Provider = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "responsible": + ResponsibleElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "role": + Role = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "qualification": + Qualification = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -843,6 +903,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "timing": + Timing = (Hl7.Fhir.Model.DataType)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + case "reason": + Reason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1073,6 +1161,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "diagnosis": + Diagnosis = (Hl7.Fhir.Model.DataType)value; + return this; + case "type": + Type = (List)value; + return this; + case "onAdmission": + OnAdmission = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "packageCode": + PackageCode = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1321,6 +1434,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "type": + Type = (List)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "procedure": + Procedure = (Hl7.Fhir.Model.DataType)value; + return this; + case "udi": + Udi = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1645,6 +1783,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "focal": + FocalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "coverage": + Coverage = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "businessArrangement": + BusinessArrangementElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "preAuthRef": + PreAuthRefElement = (List)value; + return this; + case "claimResponse": + ClaimResponse = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1829,6 +1998,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "date": + DateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "location": + Location = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2501,6 +2689,79 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "careTeamSequence": + CareTeamSequenceElement = (List)value; + return this; + case "diagnosisSequence": + DiagnosisSequenceElement = (List)value; + return this; + case "procedureSequence": + ProcedureSequenceElement = (List)value; + return this; + case "informationSequence": + InformationSequenceElement = (List)value; + return this; + case "revenue": + Revenue = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "productOrService": + ProductOrService = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "modifier": + Modifier = (List)value; + return this; + case "programCode": + ProgramCode = (List)value; + return this; + case "serviced": + Serviced = (Hl7.Fhir.Model.DataType)value; + return this; + case "location": + Location = (Hl7.Fhir.Model.DataType)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "unitPrice": + UnitPrice = (Hl7.Fhir.Model.Money)value; + return this; + case "factor": + FactorElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "net": + Net = (Hl7.Fhir.Model.Money)value; + return this; + case "udi": + Udi = (List)value; + return this; + case "bodySite": + BodySite = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subSite": + SubSite = (List)value; + return this; + case "encounter": + Encounter = (List)value; + return this; + case "detail": + Detail = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2914,6 +3175,52 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "revenue": + Revenue = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "productOrService": + ProductOrService = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "modifier": + Modifier = (List)value; + return this; + case "programCode": + ProgramCode = (List)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "unitPrice": + UnitPrice = (Hl7.Fhir.Model.Money)value; + return this; + case "factor": + FactorElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "net": + Net = (Hl7.Fhir.Model.Money)value; + return this; + case "udi": + Udi = (List)value; + return this; + case "subDetail": + SubDetail = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3296,6 +3603,49 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "revenue": + Revenue = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "productOrService": + ProductOrService = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "modifier": + Modifier = (List)value; + return this; + case "programCode": + ProgramCode = (List)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "unitPrice": + UnitPrice = (Hl7.Fhir.Model.Money)value; + return this; + case "factor": + FactorElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "net": + Net = (Hl7.Fhir.Model.Money)value; + return this; + case "udi": + Udi = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -4043,6 +4393,97 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subType": + SubType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "use": + UseElement = (Code)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "billablePeriod": + BillablePeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "created": + CreatedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "enterer": + Enterer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "insurer": + Insurer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "provider": + Provider = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "priority": + Priority = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "fundsReserve": + FundsReserve = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "related": + Related = (List)value; + return this; + case "prescription": + Prescription = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "originalPrescription": + OriginalPrescription = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "payee": + Payee = (Hl7.Fhir.Model.Claim.PayeeComponent)value; + return this; + case "referral": + Referral = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "facility": + Facility = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "careTeam": + CareTeam = (List)value; + return this; + case "supportingInfo": + SupportingInfo = (List)value; + return this; + case "diagnosis": + Diagnosis = (List)value; + return this; + case "procedure": + Procedure = (List)value; + return this; + case "insurance": + Insurance = (List)value; + return this; + case "accident": + Accident = (Hl7.Fhir.Model.Claim.AccidentComponent)value; + return this; + case "item": + Item = (List)value; + return this; + case "total": + Total = (Hl7.Fhir.Model.Money)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/ClaimResponse.cs b/src/Hl7.Fhir.R4B/Model/Generated/ClaimResponse.cs index 10620a1747..c4f7a54f51 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/ClaimResponse.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/ClaimResponse.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -267,6 +267,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "itemSequence": + ItemSequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "noteNumber": + NoteNumberElement = (List)value; + return this; + case "adjudication": + Adjudication = (List)value; + return this; + case "detail": + Detail = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -467,6 +489,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "reason": + Reason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "amount": + Amount = (Hl7.Fhir.Model.Money)value; + return this; + case "value": + ValueElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -686,6 +730,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "detailSequence": + DetailSequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "noteNumber": + NoteNumberElement = (List)value; + return this; + case "adjudication": + Adjudication = (List)value; + return this; + case "subDetail": + SubDetail = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -883,6 +949,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "subDetailSequence": + SubDetailSequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "noteNumber": + NoteNumberElement = (List)value; + return this; + case "adjudication": + Adjudication = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1469,6 +1554,70 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "itemSequence": + ItemSequenceElement = (List)value; + return this; + case "detailSequence": + DetailSequenceElement = (List)value; + return this; + case "subdetailSequence": + SubdetailSequenceElement = (List)value; + return this; + case "provider": + Provider = (List)value; + return this; + case "productOrService": + ProductOrService = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "modifier": + Modifier = (List)value; + return this; + case "programCode": + ProgramCode = (List)value; + return this; + case "serviced": + Serviced = (Hl7.Fhir.Model.DataType)value; + return this; + case "location": + Location = (Hl7.Fhir.Model.DataType)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "unitPrice": + UnitPrice = (Hl7.Fhir.Model.Money)value; + return this; + case "factor": + FactorElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "net": + Net = (Hl7.Fhir.Model.Money)value; + return this; + case "bodySite": + BodySite = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subSite": + SubSite = (List)value; + return this; + case "noteNumber": + NoteNumberElement = (List)value; + return this; + case "adjudication": + Adjudication = (List)value; + return this; + case "detail": + Detail = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1810,6 +1959,43 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "productOrService": + ProductOrService = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "modifier": + Modifier = (List)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "unitPrice": + UnitPrice = (Hl7.Fhir.Model.Money)value; + return this; + case "factor": + FactorElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "net": + Net = (Hl7.Fhir.Model.Money)value; + return this; + case "noteNumber": + NoteNumberElement = (List)value; + return this; + case "adjudication": + Adjudication = (List)value; + return this; + case "subDetail": + SubDetail = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2120,6 +2306,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "productOrService": + ProductOrService = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "modifier": + Modifier = (List)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "unitPrice": + UnitPrice = (Hl7.Fhir.Model.Money)value; + return this; + case "factor": + FactorElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "net": + Net = (Hl7.Fhir.Model.Money)value; + return this; + case "noteNumber": + NoteNumberElement = (List)value; + return this; + case "adjudication": + Adjudication = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2265,6 +2485,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "amount": + Amount = (Hl7.Fhir.Model.Money)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2506,6 +2742,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "adjustment": + Adjustment = (Hl7.Fhir.Model.Money)value; + return this; + case "adjustmentReason": + AdjustmentReason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "amount": + Amount = (Hl7.Fhir.Model.Money)value; + return this; + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2745,6 +3009,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "number": + NumberElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "type": + TypeElement = (Code)value; + return this; + case "text": + TextElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "language": + Language = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3007,6 +3293,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "focal": + FocalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "coverage": + Coverage = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "businessArrangement": + BusinessArrangementElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "claimResponse": + ClaimResponse = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3244,6 +3555,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "itemSequence": + ItemSequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "detailSequence": + DetailSequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "subDetailSequence": + SubDetailSequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -4036,6 +4369,97 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subType": + SubType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "use": + UseElement = (Code)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "created": + CreatedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "insurer": + Insurer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "requestor": + Requestor = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "request": + Request = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "outcome": + OutcomeElement = (Code)value; + return this; + case "disposition": + DispositionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "preAuthRef": + PreAuthRefElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "preAuthPeriod": + PreAuthPeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "payeeType": + PayeeType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "item": + Item = (List)value; + return this; + case "addItem": + AddItem = (List)value; + return this; + case "adjudication": + Adjudication = (List)value; + return this; + case "total": + Total = (List)value; + return this; + case "payment": + Payment = (Hl7.Fhir.Model.ClaimResponse.PaymentComponent)value; + return this; + case "fundsReserve": + FundsReserve = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "formCode": + FormCode = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "form": + Form = (Hl7.Fhir.Model.Attachment)value; + return this; + case "processNote": + ProcessNote = (List)value; + return this; + case "communicationRequest": + CommunicationRequest = (List)value; + return this; + case "insurance": + Insurance = (List)value; + return this; + case "error": + Error = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/ClinicalImpression.cs b/src/Hl7.Fhir.R4B/Model/Generated/ClinicalImpression.cs index bb1b00bb13..834e23cbce 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/ClinicalImpression.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/ClinicalImpression.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -218,6 +218,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "item": + Item = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -395,6 +411,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "itemCodeableConcept": + ItemCodeableConcept = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "itemReference": + ItemReference = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "basis": + BasisElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1016,6 +1051,76 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "statusReason": + StatusReason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "effective": + Effective = (Hl7.Fhir.Model.DataType)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "assessor": + Assessor = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "previous": + Previous = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "problem": + Problem = (List)value; + return this; + case "investigation": + Investigation = (List)value; + return this; + case "protocol": + ProtocolElement = (List)value; + return this; + case "summary": + SummaryElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "finding": + Finding = (List)value; + return this; + case "prognosisCodeableConcept": + PrognosisCodeableConcept = (List)value; + return this; + case "prognosisReference": + PrognosisReference = (List)value; + return this; + case "supportingInfo": + SupportingInfo = (List)value; + return this; + case "note": + Note = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/ClinicalUseDefinition.cs b/src/Hl7.Fhir.R4B/Model/Generated/ClinicalUseDefinition.cs index 1586aea150..6dde3b1d7e 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/ClinicalUseDefinition.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/ClinicalUseDefinition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -290,6 +290,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "diseaseSymptomProcedure": + DiseaseSymptomProcedure = (Hl7.Fhir.Model.CodeableReference)value; + return this; + case "diseaseStatus": + DiseaseStatus = (Hl7.Fhir.Model.CodeableReference)value; + return this; + case "comorbidity": + Comorbidity = (List)value; + return this; + case "indication": + Indication = (List)value; + return this; + case "otherTherapy": + OtherTherapy = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -432,6 +457,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "relationshipType": + RelationshipType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "therapy": + Therapy = (Hl7.Fhir.Model.CodeableReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -680,6 +721,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "diseaseSymptomProcedure": + DiseaseSymptomProcedure = (Hl7.Fhir.Model.CodeableReference)value; + return this; + case "diseaseStatus": + DiseaseStatus = (Hl7.Fhir.Model.CodeableReference)value; + return this; + case "comorbidity": + Comorbidity = (List)value; + return this; + case "intendedEffect": + IntendedEffect = (Hl7.Fhir.Model.CodeableReference)value; + return this; + case "duration": + Duration = (Hl7.Fhir.Model.DataType)value; + return this; + case "undesirableEffect": + UndesirableEffect = (List)value; + return this; + case "otherTherapy": + OtherTherapy = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -886,6 +958,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "interactant": + Interactant = (List)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "effect": + Effect = (Hl7.Fhir.Model.CodeableReference)value; + return this; + case "incidence": + Incidence = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "management": + Management = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1005,6 +1102,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "item": + Item = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1163,6 +1273,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "symptomConditionEffect": + SymptomConditionEffect = (Hl7.Fhir.Model.CodeableReference)value; + return this; + case "classification": + Classification = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "frequencyOfOccurrence": + FrequencyOfOccurrence = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1318,6 +1447,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1658,6 +1803,49 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "type": + TypeElement = (Code)value; + return this; + case "category": + Category = (List)value; + return this; + case "subject": + Subject = (List)value; + return this; + case "status": + Status = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "contraindication": + Contraindication = (Hl7.Fhir.Model.ClinicalUseDefinition.ContraindicationComponent)value; + return this; + case "indication": + Indication = (Hl7.Fhir.Model.ClinicalUseDefinition.IndicationComponent)value; + return this; + case "interaction": + Interaction = (Hl7.Fhir.Model.ClinicalUseDefinition.InteractionComponent)value; + return this; + case "population": + Population = (List)value; + return this; + case "undesirableEffect": + UndesirableEffect = (Hl7.Fhir.Model.ClinicalUseDefinition.UndesirableEffectComponent)value; + return this; + case "warning": + Warning = (Hl7.Fhir.Model.ClinicalUseDefinition.WarningComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Communication.cs b/src/Hl7.Fhir.R4B/Model/Generated/Communication.cs index c28bb2f928..4ac5f46c54 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Communication.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Communication.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -168,6 +168,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "content": + Content = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -878,6 +891,85 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "instantiatesCanonical": + InstantiatesCanonicalElement = (List)value; + return this; + case "instantiatesUri": + InstantiatesUriElement = (List)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "partOf": + PartOf = (List)value; + return this; + case "inResponseTo": + InResponseTo = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "statusReason": + StatusReason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "category": + Category = (List)value; + return this; + case "priority": + PriorityElement = (Code)value; + return this; + case "medium": + Medium = (List)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "topic": + Topic = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "about": + About = (List)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "sent": + SentElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "received": + ReceivedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "recipient": + Recipient = (List)value; + return this; + case "sender": + Sender = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "reasonReference": + ReasonReference = (List)value; + return this; + case "payload": + Payload = (List)value; + return this; + case "note": + Note = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/CommunicationRequest.cs b/src/Hl7.Fhir.R4B/Model/Generated/CommunicationRequest.cs index d496f0b982..c9e9a7a591 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/CommunicationRequest.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/CommunicationRequest.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -168,6 +168,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "content": + Content = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -819,6 +832,82 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "replaces": + Replaces = (List)value; + return this; + case "groupIdentifier": + GroupIdentifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "statusReason": + StatusReason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "category": + Category = (List)value; + return this; + case "priority": + PriorityElement = (Code)value; + return this; + case "doNotPerform": + DoNotPerformElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "medium": + Medium = (List)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "about": + About = (List)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "payload": + Payload = (List)value; + return this; + case "occurrence": + Occurrence = (Hl7.Fhir.Model.DataType)value; + return this; + case "authoredOn": + AuthoredOnElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "requester": + Requester = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "recipient": + Recipient = (List)value; + return this; + case "sender": + Sender = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "reasonReference": + ReasonReference = (List)value; + return this; + case "note": + Note = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/CompartmentDefinition.cs b/src/Hl7.Fhir.R4B/Model/Generated/CompartmentDefinition.cs index 7e2e7038f3..d8da7fa037 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/CompartmentDefinition.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/CompartmentDefinition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -265,6 +265,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + CodeElement = (Code)value; + return this; + case "param": + ParamElement = (List)value; + return this; + case "documentation": + DocumentationElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -846,6 +865,58 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "code": + CodeElement = (Code)value; + return this; + case "search": + SearchElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "resource": + Resource = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Composition.cs b/src/Hl7.Fhir.R4B/Model/Generated/Composition.cs index b22a35bc09..23ec521208 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Composition.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Composition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -329,6 +329,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "mode": + ModeElement = (Code)value; + return this; + case "time": + TimeElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "party": + Party = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -491,6 +510,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + CodeElement = (Code)value; + return this; + case "target": + Target = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -653,6 +688,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (List)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "detail": + Detail = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1007,6 +1061,46 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "author": + Author = (List)value; + return this; + case "focus": + Focus = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "text": + Text = (Hl7.Fhir.Model.Narrative)value; + return this; + case "mode": + ModeElement = (Code)value; + return this; + case "orderedBy": + OrderedBy = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "entry": + Entry = (List)value; + return this; + case "emptyReason": + EmptyReason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "section": + Section = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1504,6 +1598,61 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "category": + Category = (List)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "author": + Author = (List)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "confidentiality": + ConfidentialityElement = (Code)value; + return this; + case "attester": + Attester = (List)value; + return this; + case "custodian": + Custodian = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "relatesTo": + RelatesTo = (List)value; + return this; + case "event": + Event = (List)value; + return this; + case "section": + Section = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/ConceptMap.cs b/src/Hl7.Fhir.R4B/Model/Generated/ConceptMap.cs index ed594fb6bb..6b63a565ed 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/ConceptMap.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/ConceptMap.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -370,6 +370,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "source": + SourceElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "sourceVersion": + SourceVersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "target": + TargetElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "targetVersion": + TargetVersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "element": + Element = (List)value; + return this; + case "unmapped": + Unmapped = (Hl7.Fhir.Model.ConceptMap.UnmappedComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -568,6 +596,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + CodeElement = (Hl7.Fhir.Model.Code)value; + return this; + case "display": + DisplayElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "target": + Target = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -866,6 +913,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + CodeElement = (Hl7.Fhir.Model.Code)value; + return this; + case "display": + DisplayElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "equivalence": + EquivalenceElement = (Code)value; + return this; + case "comment": + CommentElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "dependsOn": + DependsOn = (List)value; + return this; + case "product": + Product = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1121,6 +1196,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "property": + PropertyElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "system": + SystemElement = (Hl7.Fhir.Model.Canonical)value; + return this; + case "value": + ValueElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "display": + DisplayElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1376,6 +1473,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "mode": + ModeElement = (Code)value; + return this; + case "code": + CodeElement = (Hl7.Fhir.Model.Code)value; + return this; + case "display": + DisplayElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "url": + UrlElement = (Hl7.Fhir.Model.Canonical)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2044,6 +2163,70 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "source": + Source = (Hl7.Fhir.Model.DataType)value; + return this; + case "target": + Target = (Hl7.Fhir.Model.DataType)value; + return this; + case "group": + Group = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Condition.cs b/src/Hl7.Fhir.R4B/Model/Generated/Condition.cs index 2dd8204ad7..6bb7806674 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Condition.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Condition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -303,6 +303,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "summary": + Summary = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "assessment": + Assessment = (List)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -445,6 +464,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (List)value; + return this; + case "detail": + Detail = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -923,6 +958,67 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "clinicalStatus": + ClinicalStatus = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "verificationStatus": + VerificationStatus = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "category": + Category = (List)value; + return this; + case "severity": + Severity = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "bodySite": + BodySite = (List)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "onset": + Onset = (Hl7.Fhir.Model.DataType)value; + return this; + case "abatement": + Abatement = (Hl7.Fhir.Model.DataType)value; + return this; + case "recordedDate": + RecordedDateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "recorder": + Recorder = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "asserter": + Asserter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "stage": + Stage = (List)value; + return this; + case "evidence": + Evidence = (List)value; + return this; + case "note": + Note = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Consent.cs b/src/Hl7.Fhir.R4B/Model/Generated/Consent.cs index 1f73c1ed10..7365b6ea45 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Consent.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Consent.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -324,6 +324,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "authority": + AuthorityElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "uri": + UriElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -519,6 +535,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "verified": + VerifiedElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "verifiedWith": + VerifiedWith = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "verificationDate": + VerificationDateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -877,6 +912,49 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "actor": + Actor = (List)value; + return this; + case "action": + Action = (List)value; + return this; + case "securityLabel": + SecurityLabel = (List)value; + return this; + case "purpose": + Purpose = (List)value; + return this; + case "class": + Class = (List)value; + return this; + case "code": + Code = (List)value; + return this; + case "dataPeriod": + DataPeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "data": + Data = (List)value; + return this; + case "provision": + Provision = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1026,6 +1104,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "role": + Role = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "reference": + Reference = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1185,6 +1279,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "meaning": + MeaningElement = (Code)value; + return this; + case "reference": + Reference = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1594,6 +1704,55 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "scope": + Scope = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "category": + Category = (List)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "dateTime": + DateTimeElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "performer": + Performer = (List)value; + return this; + case "organization": + Organization = (List)value; + return this; + case "source": + Source = (Hl7.Fhir.Model.DataType)value; + return this; + case "policy": + Policy = (List)value; + return this; + case "policyRule": + PolicyRule = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "verification": + Verification = (List)value; + return this; + case "provision": + Provision = (Hl7.Fhir.Model.Consent.provisionComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Contract.cs b/src/Hl7.Fhir.R4B/Model/Generated/Contract.cs index 3a0f7a6a2d..6e2812e5e1 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Contract.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Contract.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -531,6 +531,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subType": + SubType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "publisher": + Publisher = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "publicationDate": + PublicationDateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publicationStatus": + PublicationStatusElement = (Code)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -926,6 +954,52 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "issued": + IssuedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "applies": + Applies = (Hl7.Fhir.Model.Period)value; + return this; + case "topic": + Topic = (Hl7.Fhir.Model.DataType)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subType": + SubType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "text": + TextElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "securityLabel": + SecurityLabel = (List)value; + return this; + case "offer": + Offer = (Hl7.Fhir.Model.Contract.ContractOfferComponent)value; + return this; + case "asset": + Asset = (List)value; + return this; + case "action": + Action = (List)value; + return this; + case "group": + Group = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1138,6 +1212,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "number": + NumberElement = (List)value; + return this; + case "classification": + Classification = (Hl7.Fhir.Model.Coding)value; + return this; + case "category": + Category = (List)value; + return this; + case "control": + Control = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1508,6 +1604,46 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "party": + Party = (List)value; + return this; + case "topic": + Topic = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "decision": + Decision = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "decisionMode": + DecisionMode = (List)value; + return this; + case "answer": + Answer = (List)value; + return this; + case "text": + TextElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "linkId": + LinkIdElement = (List)value; + return this; + case "securityLabelNumber": + SecurityLabelNumberElement = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1653,6 +1789,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "reference": + Reference = (List)value; + return this; + case "role": + Role = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1768,6 +1920,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2262,6 +2427,61 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "scope": + Scope = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "type": + Type = (List)value; + return this; + case "typeReference": + TypeReference = (List)value; + return this; + case "subtype": + Subtype = (List)value; + return this; + case "relationship": + Relationship = (Hl7.Fhir.Model.Coding)value; + return this; + case "context": + Context = (List)value; + return this; + case "condition": + ConditionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "periodType": + PeriodType = (List)value; + return this; + case "period": + Period = (List)value; + return this; + case "usePeriod": + UsePeriod = (List)value; + return this; + case "text": + TextElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "linkId": + LinkIdElement = (List)value; + return this; + case "answer": + Answer = (List)value; + return this; + case "securityLabelNumber": + SecurityLabelNumberElement = (List)value; + return this; + case "valuedItem": + ValuedItem = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2450,6 +2670,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "reference": + Reference = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "code": + Code = (List)value; + return this; + case "text": + TextElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2970,6 +3209,58 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "entity": + Entity = (Hl7.Fhir.Model.DataType)value; + return this; + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "effectiveTime": + EffectiveTimeElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "unitPrice": + UnitPrice = (Hl7.Fhir.Model.Money)value; + return this; + case "factor": + FactorElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "points": + PointsElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "net": + Net = (Hl7.Fhir.Model.Money)value; + return this; + case "payment": + PaymentElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "paymentDate": + PaymentDateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "responsible": + Responsible = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "recipient": + Recipient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "linkId": + LinkIdElement = (List)value; + return this; + case "securityLabelNumber": + SecurityLabelNumberElement = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3694,6 +3985,79 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "doNotPerform": + DoNotPerformElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (List)value; + return this; + case "intent": + Intent = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "linkId": + LinkIdElement = (List)value; + return this; + case "status": + Status = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "context": + Context = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "contextLinkId": + ContextLinkIdElement = (List)value; + return this; + case "occurrence": + Occurrence = (Hl7.Fhir.Model.DataType)value; + return this; + case "requester": + Requester = (List)value; + return this; + case "requesterLinkId": + RequesterLinkIdElement = (List)value; + return this; + case "performerType": + PerformerType = (List)value; + return this; + case "performerRole": + PerformerRole = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "performer": + Performer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "performerLinkId": + PerformerLinkIdElement = (List)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "reasonReference": + ReasonReference = (List)value; + return this; + case "reason": + ReasonElement = (List)value; + return this; + case "reasonLinkId": + ReasonLinkIdElement = (List)value; + return this; + case "note": + Note = (List)value; + return this; + case "securityLabelNumber": + SecurityLabelNumberElement = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3849,6 +4213,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "reference": + Reference = (List)value; + return this; + case "role": + Role = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -4013,6 +4393,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.Coding)value; + return this; + case "party": + Party = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "signature": + Signature = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -4132,6 +4531,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "content": + Content = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -4249,6 +4661,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "content": + Content = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -4366,6 +4791,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "content": + Content = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -5342,6 +5780,115 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "legalState": + LegalState = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "instantiatesCanonical": + InstantiatesCanonical = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "instantiatesUri": + InstantiatesUriElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "contentDerivative": + ContentDerivative = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "issued": + IssuedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "applies": + Applies = (Hl7.Fhir.Model.Period)value; + return this; + case "expirationType": + ExpirationType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (List)value; + return this; + case "authority": + Authority = (List)value; + return this; + case "domain": + Domain = (List)value; + return this; + case "site": + Site = (List)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "subtitle": + SubtitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "alias": + AliasElement = (List)value; + return this; + case "author": + Author = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "scope": + Scope = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "topic": + Topic = (Hl7.Fhir.Model.DataType)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subType": + SubType = (List)value; + return this; + case "contentDefinition": + ContentDefinition = (Hl7.Fhir.Model.Contract.ContentDefinitionComponent)value; + return this; + case "term": + Term = (List)value; + return this; + case "supportingInfo": + SupportingInfo = (List)value; + return this; + case "relevantHistory": + RelevantHistory = (List)value; + return this; + case "signer": + Signer = (List)value; + return this; + case "friendly": + Friendly = (List)value; + return this; + case "legal": + Legal = (List)value; + return this; + case "rule": + Rule = (List)value; + return this; + case "legallyBinding": + LegallyBinding = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Contributor.cs b/src/Hl7.Fhir.R4B/Model/Generated/Contributor.cs index c1eb6ddc73..ba06725932 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Contributor.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Contributor.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -264,6 +264,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Count.cs b/src/Hl7.Fhir.R4B/Model/Generated/Count.cs index 474a821900..1fb5e18f17 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Count.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Count.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Coverage.cs b/src/Hl7.Fhir.R4B/Model/Generated/Coverage.cs index 7f3e2456ad..9e2099f864 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Coverage.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Coverage.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -247,6 +247,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "value": + ValueElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -410,6 +429,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + case "exception": + Exception = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -548,6 +586,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1112,6 +1166,67 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "policyHolder": + PolicyHolder = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "subscriber": + Subscriber = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "subscriberId": + SubscriberIdElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "beneficiary": + Beneficiary = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "dependent": + DependentElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "relationship": + Relationship = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "payor": + Payor = (List)value; + return this; + case "class": + Class = (List)value; + return this; + case "order": + OrderElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "network": + NetworkElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "costToBeneficiary": + CostToBeneficiary = (List)value; + return this; + case "subrogation": + SubrogationElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "contract": + Contract = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/CoverageEligibilityRequest.cs b/src/Hl7.Fhir.R4B/Model/Generated/CoverageEligibilityRequest.cs index eac2a09773..804b746aae 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/CoverageEligibilityRequest.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/CoverageEligibilityRequest.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -281,6 +281,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "information": + Information = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "appliesToAll": + AppliesToAllElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -478,6 +497,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "focal": + FocalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "coverage": + Coverage = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "businessArrangement": + BusinessArrangementElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -813,6 +851,46 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "supportingInfoSequence": + SupportingInfoSequenceElement = (List)value; + return this; + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "productOrService": + ProductOrService = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "modifier": + Modifier = (List)value; + return this; + case "provider": + Provider = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "unitPrice": + UnitPrice = (Hl7.Fhir.Model.Money)value; + return this; + case "facility": + Facility = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "diagnosis": + Diagnosis = (List)value; + return this; + case "detail": + Detail = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -939,6 +1017,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "diagnosis": + Diagnosis = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1390,6 +1481,58 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "priority": + Priority = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "purpose": + PurposeElement = (List>)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "serviced": + Serviced = (Hl7.Fhir.Model.DataType)value; + return this; + case "created": + CreatedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "enterer": + Enterer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "provider": + Provider = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "insurer": + Insurer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "facility": + Facility = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "supportingInfo": + SupportingInfo = (List)value; + return this; + case "insurance": + Insurance = (List)value; + return this; + case "item": + Item = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/CoverageEligibilityResponse.cs b/src/Hl7.Fhir.R4B/Model/Generated/CoverageEligibilityResponse.cs index 298522563f..04647a5db3 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/CoverageEligibilityResponse.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/CoverageEligibilityResponse.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -284,6 +284,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "coverage": + Coverage = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "inforce": + InforceElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "benefitPeriod": + BenefitPeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "item": + Item = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -775,6 +797,58 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "productOrService": + ProductOrService = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "modifier": + Modifier = (List)value; + return this; + case "provider": + Provider = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "excluded": + ExcludedElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "network": + Network = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "unit": + Unit = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "term": + Term = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "benefit": + Benefit = (List)value; + return this; + case "authorizationRequired": + AuthorizationRequiredElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "authorizationSupporting": + AuthorizationSupporting = (List)value; + return this; + case "authorizationUrl": + AuthorizationUrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -949,6 +1023,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "allowed": + Allowed = (Hl7.Fhir.Model.DataType)value; + return this; + case "used": + Used = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1066,6 +1159,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1593,6 +1699,61 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "purpose": + PurposeElement = (List>)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "serviced": + Serviced = (Hl7.Fhir.Model.DataType)value; + return this; + case "created": + CreatedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "requestor": + Requestor = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "request": + Request = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "outcome": + OutcomeElement = (Code)value; + return this; + case "disposition": + DispositionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "insurer": + Insurer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "insurance": + Insurance = (List)value; + return this; + case "preAuthRef": + PreAuthRefElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "form": + Form = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "error": + Error = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/DataRequirement.cs b/src/Hl7.Fhir.R4B/Model/Generated/DataRequirement.cs index f6498a1073..99078bfe4d 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/DataRequirement.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/DataRequirement.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -304,6 +304,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "path": + PathElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "searchParam": + SearchParamElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "valueSet": + ValueSetElement = (Hl7.Fhir.Model.Canonical)value; + return this; + case "code": + Code = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -500,6 +522,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "path": + PathElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "searchParam": + SearchParamElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -677,6 +718,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "path": + PathElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "direction": + DirectionElement = (Code)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1005,6 +1062,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "profile": + ProfileElement = (List)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.DataType)value; + return this; + case "mustSupport": + MustSupportElement = (List)value; + return this; + case "codeFilter": + CodeFilter = (List)value; + return this; + case "dateFilter": + DateFilter = (List)value; + return this; + case "limit": + LimitElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "sort": + Sort = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/DetectedIssue.cs b/src/Hl7.Fhir.R4B/Model/Generated/DetectedIssue.cs index 34ac0f2845..a17a93d09e 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/DetectedIssue.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/DetectedIssue.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -218,6 +218,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (List)value; + return this; + case "detail": + Detail = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -396,6 +412,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "action": + Action = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "author": + Author = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -817,6 +852,52 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "severity": + SeverityElement = (Code)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "identified": + Identified = (Hl7.Fhir.Model.DataType)value; + return this; + case "author": + Author = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "implicated": + Implicated = (List)value; + return this; + case "evidence": + Evidence = (List)value; + return this; + case "detail": + DetailElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "reference": + ReferenceElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "mitigation": + Mitigation = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Device.cs b/src/Hl7.Fhir.R4B/Model/Generated/Device.cs index c6f5ba94be..b16fa9685e 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Device.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Device.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -460,6 +460,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "deviceIdentifier": + DeviceIdentifierElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "issuer": + IssuerElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "jurisdiction": + JurisdictionElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "carrierAIDC": + CarrierAIDCElement = (Hl7.Fhir.Model.Base64Binary)value; + return this; + case "carrierHRF": + CarrierHRFElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "entryType": + EntryTypeElement = (Code)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -639,6 +667,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "type": + TypeElement = (Code)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -790,6 +834,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "systemType": + SystemType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -962,6 +1022,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "component": + Component = (Hl7.Fhir.Model.Identifier)value; + return this; + case "value": + ValueElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1119,6 +1198,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "valueQuantity": + ValueQuantity = (List)value; + return this; + case "valueCode": + ValueCode = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1948,6 +2046,94 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "definition": + Definition = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "udiCarrier": + UdiCarrier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "statusReason": + StatusReason = (List)value; + return this; + case "distinctIdentifier": + DistinctIdentifierElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "manufacturer": + ManufacturerElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "manufactureDate": + ManufactureDateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "expirationDate": + ExpirationDateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "lotNumber": + LotNumberElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "serialNumber": + SerialNumberElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "deviceName": + DeviceName = (List)value; + return this; + case "modelNumber": + ModelNumberElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "partNumber": + PartNumberElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "specialization": + Specialization = (List)value; + return this; + case "version": + Version = (List)value; + return this; + case "property": + Property = (List)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "owner": + Owner = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "location": + Location = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "note": + Note = (List)value; + return this; + case "safety": + Safety = (List)value; + return this; + case "parent": + Parent = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/DeviceDefinition.cs b/src/Hl7.Fhir.R4B/Model/Generated/DeviceDefinition.cs index fa54baf123..b938124a6e 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/DeviceDefinition.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/DeviceDefinition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -264,6 +264,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "deviceIdentifier": + DeviceIdentifierElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "issuer": + IssuerElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "jurisdiction": + JurisdictionElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -437,6 +456,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "type": + TypeElement = (Code)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -606,6 +641,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "systemType": + SystemTypeElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -740,6 +791,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "description": + Description = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -896,6 +963,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "valueQuantity": + ValueQuantity = (List)value; + return this; + case "valueCode": + ValueCode = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1087,6 +1173,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "substance": + Substance = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "alternate": + AlternateElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "allergenicIndicator": + AllergenicIndicatorElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1722,6 +1827,82 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "udiDeviceIdentifier": + UdiDeviceIdentifier = (List)value; + return this; + case "manufacturer": + Manufacturer = (Hl7.Fhir.Model.DataType)value; + return this; + case "deviceName": + DeviceName = (List)value; + return this; + case "modelNumber": + ModelNumberElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "specialization": + Specialization = (List)value; + return this; + case "version": + VersionElement = (List)value; + return this; + case "safety": + Safety = (List)value; + return this; + case "shelfLifeStorage": + ShelfLifeStorage = (List)value; + return this; + case "physicalCharacteristics": + PhysicalCharacteristics = (Hl7.Fhir.Model.ProdCharacteristic)value; + return this; + case "languageCode": + LanguageCode = (List)value; + return this; + case "capability": + Capability = (List)value; + return this; + case "property": + Property = (List)value; + return this; + case "owner": + Owner = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "onlineInformation": + OnlineInformationElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "note": + Note = (List)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "parentDevice": + ParentDevice = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "material": + Material = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/DeviceMetric.cs b/src/Hl7.Fhir.R4B/Model/Generated/DeviceMetric.cs index 4abcd4873f..45f5ac0565 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/DeviceMetric.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/DeviceMetric.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -456,6 +456,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "state": + StateElement = (Code)value; + return this; + case "time": + TimeElement = (Hl7.Fhir.Model.Instant)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -815,6 +834,46 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "unit": + Unit = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "source": + Source = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "parent": + Parent = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "operationalStatus": + OperationalStatusElement = (Code)value; + return this; + case "color": + ColorElement = (Code)value; + return this; + case "category": + CategoryElement = (Code)value; + return this; + case "measurementPeriod": + MeasurementPeriod = (Hl7.Fhir.Model.Timing)value; + return this; + case "calibration": + Calibration = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/DeviceRequest.cs b/src/Hl7.Fhir.R4B/Model/Generated/DeviceRequest.cs index ccef413682..22a10abf73 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/DeviceRequest.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/DeviceRequest.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -188,6 +188,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -927,6 +943,88 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "instantiatesCanonical": + InstantiatesCanonicalElement = (List)value; + return this; + case "instantiatesUri": + InstantiatesUriElement = (List)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "priorRequest": + PriorRequest = (List)value; + return this; + case "groupIdentifier": + GroupIdentifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "intent": + IntentElement = (Code)value; + return this; + case "priority": + PriorityElement = (Code)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.DataType)value; + return this; + case "parameter": + Parameter = (List)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "occurrence": + Occurrence = (Hl7.Fhir.Model.DataType)value; + return this; + case "authoredOn": + AuthoredOnElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "requester": + Requester = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "performerType": + PerformerType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "performer": + Performer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "reasonReference": + ReasonReference = (List)value; + return this; + case "insurance": + Insurance = (List)value; + return this; + case "supportingInfo": + SupportingInfo = (List)value; + return this; + case "note": + Note = (List)value; + return this; + case "relevantHistory": + RelevantHistory = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/DeviceUseStatement.cs b/src/Hl7.Fhir.R4B/Model/Generated/DeviceUseStatement.cs index 2368f92bd3..cc81242106 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/DeviceUseStatement.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/DeviceUseStatement.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -509,6 +509,55 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "derivedFrom": + DerivedFrom = (List)value; + return this; + case "timing": + Timing = (Hl7.Fhir.Model.DataType)value; + return this; + case "recordedOn": + RecordedOnElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "source": + Source = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "device": + Device = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "reasonReference": + ReasonReference = (List)value; + return this; + case "bodySite": + BodySite = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "note": + Note = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/DiagnosticReport.cs b/src/Hl7.Fhir.R4B/Model/Generated/DiagnosticReport.cs index 5b72e09737..0a4e749db5 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/DiagnosticReport.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/DiagnosticReport.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -277,6 +277,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "comment": + CommentElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "link": + Link = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -823,6 +839,70 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "category": + Category = (List)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "effective": + Effective = (Hl7.Fhir.Model.DataType)value; + return this; + case "issued": + IssuedElement = (Hl7.Fhir.Model.Instant)value; + return this; + case "performer": + Performer = (List)value; + return this; + case "resultsInterpreter": + ResultsInterpreter = (List)value; + return this; + case "specimen": + Specimen = (List)value; + return this; + case "result": + Result = (List)value; + return this; + case "imagingStudy": + ImagingStudy = (List)value; + return this; + case "media": + Media = (List)value; + return this; + case "conclusion": + ConclusionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "conclusionCode": + ConclusionCode = (List)value; + return this; + case "presentedForm": + PresentedForm = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Distance.cs b/src/Hl7.Fhir.R4B/Model/Generated/Distance.cs index 7974519201..a3997c96b1 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Distance.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Distance.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/DocumentManifest.cs b/src/Hl7.Fhir.R4B/Model/Generated/DocumentManifest.cs index fcfb475017..0054ec5d93 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/DocumentManifest.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/DocumentManifest.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -188,6 +188,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "ref": + Ref = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -607,6 +623,52 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "masterIdentifier": + MasterIdentifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "created": + CreatedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "author": + Author = (List)value; + return this; + case "recipient": + Recipient = (List)value; + return this; + case "source": + SourceElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "content": + Content = (List)value; + return this; + case "related": + Related = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/DocumentReference.cs b/src/Hl7.Fhir.R4B/Model/Generated/DocumentReference.cs index 7c7df4b1eb..51541f2b56 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/DocumentReference.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/DocumentReference.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -211,6 +211,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + CodeElement = (Code)value; + return this; + case "target": + Target = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -348,6 +364,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "attachment": + Attachment = (Hl7.Fhir.Model.Attachment)value; + return this; + case "format": + Format = (Hl7.Fhir.Model.Coding)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -601,6 +633,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "encounter": + Encounter = (List)value; + return this; + case "event": + Event = (List)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "facilityType": + FacilityType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "practiceSetting": + PracticeSetting = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "sourcePatientInfo": + SourcePatientInfo = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "related": + Related = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1114,6 +1177,64 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "masterIdentifier": + MasterIdentifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "docStatus": + DocStatusElement = (Code)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "category": + Category = (List)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.Instant)value; + return this; + case "author": + Author = (List)value; + return this; + case "authenticator": + Authenticator = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "custodian": + Custodian = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "relatesTo": + RelatesTo = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "securityLabel": + SecurityLabel = (List)value; + return this; + case "content": + Content = (List)value; + return this; + case "context": + Context = (Hl7.Fhir.Model.DocumentReference.ContextComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Dosage.cs b/src/Hl7.Fhir.R4B/Model/Generated/Dosage.cs index 32cb6cb486..cc52340ab2 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Dosage.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Dosage.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -211,6 +211,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "dose": + Dose = (Hl7.Fhir.Model.DataType)value; + return this; + case "rate": + Rate = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -624,6 +643,55 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "text": + TextElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "additionalInstruction": + AdditionalInstruction = (List)value; + return this; + case "patientInstruction": + PatientInstructionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "timing": + Timing = (Hl7.Fhir.Model.Timing)value; + return this; + case "asNeeded": + AsNeeded = (Hl7.Fhir.Model.DataType)value; + return this; + case "site": + Site = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "route": + Route = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "method": + Method = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "doseAndRate": + DoseAndRate = (List)value; + return this; + case "maxDosePerPeriod": + MaxDosePerPeriod = (Hl7.Fhir.Model.Ratio)value; + return this; + case "maxDosePerAdministration": + MaxDosePerAdministration = (Hl7.Fhir.Model.Quantity)value; + return this; + case "maxDosePerLifetime": + MaxDosePerLifetime = (Hl7.Fhir.Model.Quantity)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Duration.cs b/src/Hl7.Fhir.R4B/Model/Generated/Duration.cs index da8c8eb115..4da217c14c 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Duration.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Duration.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Encounter.cs b/src/Hl7.Fhir.R4B/Model/Generated/Encounter.cs index 23041231b0..ae3b085814 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Encounter.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Encounter.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -308,6 +308,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "status": + StatusElement = (Code)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -446,6 +462,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "class": + Class = (Hl7.Fhir.Model.Coding)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -606,6 +638,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (List)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "individual": + Individual = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -782,6 +833,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "condition": + Condition = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "use": + Use = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "rank": + RankElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1079,6 +1149,43 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "preAdmissionIdentifier": + PreAdmissionIdentifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "origin": + Origin = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "admitSource": + AdmitSource = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "reAdmission": + ReAdmission = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "dietPreference": + DietPreference = (List)value; + return this; + case "specialCourtesy": + SpecialCourtesy = (List)value; + return this; + case "specialArrangement": + SpecialArrangement = (List)value; + return this; + case "destination": + Destination = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "dischargeDisposition": + DischargeDisposition = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1288,6 +1395,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "location": + Location = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "physicalType": + PhysicalType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1907,6 +2036,85 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "statusHistory": + StatusHistory = (List)value; + return this; + case "class": + Class = (Hl7.Fhir.Model.Coding)value; + return this; + case "classHistory": + ClassHistory = (List)value; + return this; + case "type": + Type = (List)value; + return this; + case "serviceType": + ServiceType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "priority": + Priority = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "episodeOfCare": + EpisodeOfCare = (List)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "participant": + Participant = (List)value; + return this; + case "appointment": + Appointment = (List)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "length": + Length = (Hl7.Fhir.Model.Duration)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "reasonReference": + ReasonReference = (List)value; + return this; + case "diagnosis": + Diagnosis = (List)value; + return this; + case "account": + Account = (List)value; + return this; + case "hospitalization": + Hospitalization = (Hl7.Fhir.Model.Encounter.HospitalizationComponent)value; + return this; + case "location": + Location = (List)value; + return this; + case "serviceProvider": + ServiceProvider = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "partOf": + PartOf = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Endpoint.cs b/src/Hl7.Fhir.R4B/Model/Generated/Endpoint.cs index b07bcb0c01..4faf7d0f25 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Endpoint.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Endpoint.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -510,6 +510,49 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "connectionType": + ConnectionType = (Hl7.Fhir.Model.Coding)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "managingOrganization": + ManagingOrganization = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "payloadType": + PayloadType = (List)value; + return this; + case "payloadMimeType": + PayloadMimeTypeElement = (List)value; + return this; + case "address": + AddressElement = (Hl7.Fhir.Model.FhirUrl)value; + return this; + case "header": + HeaderElement = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/EnrollmentRequest.cs b/src/Hl7.Fhir.R4B/Model/Generated/EnrollmentRequest.cs index a355dd39bd..f79c48050f 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/EnrollmentRequest.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/EnrollmentRequest.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -322,6 +322,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "created": + CreatedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "insurer": + Insurer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "provider": + Provider = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "candidate": + Candidate = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "coverage": + Coverage = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/EnrollmentResponse.cs b/src/Hl7.Fhir.R4B/Model/Generated/EnrollmentResponse.cs index 6714d14c51..4e185428f4 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/EnrollmentResponse.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/EnrollmentResponse.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -379,6 +379,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "request": + Request = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "outcome": + OutcomeElement = (Code)value; + return this; + case "disposition": + DispositionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "created": + CreatedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "organization": + Organization = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "requestProvider": + RequestProvider = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/EpisodeOfCare.cs b/src/Hl7.Fhir.R4B/Model/Generated/EpisodeOfCare.cs index e37dfaad09..bc800335ba 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/EpisodeOfCare.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/EpisodeOfCare.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -259,6 +259,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "status": + StatusElement = (Code)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -434,6 +450,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "condition": + Condition = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "role": + Role = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "rank": + RankElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -807,6 +842,52 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "statusHistory": + StatusHistory = (List)value; + return this; + case "type": + Type = (List)value; + return this; + case "diagnosis": + Diagnosis = (List)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "managingOrganization": + ManagingOrganization = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "referralRequest": + ReferralRequest = (List)value; + return this; + case "careManager": + CareManager = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "team": + Team = (List)value; + return this; + case "account": + Account = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/EventDefinition.cs b/src/Hl7.Fhir.R4B/Model/Generated/EventDefinition.cs index 402e4f375f..900ca2be63 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/EventDefinition.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/EventDefinition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -1006,6 +1006,100 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "subtitle": + SubtitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.DataType)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "usage": + UsageElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "approvalDate": + ApprovalDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "lastReviewDate": + LastReviewDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "effectivePeriod": + EffectivePeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "topic": + Topic = (List)value; + return this; + case "author": + Author = (List)value; + return this; + case "editor": + Editor = (List)value; + return this; + case "reviewer": + Reviewer = (List)value; + return this; + case "endorser": + Endorser = (List)value; + return this; + case "relatedArtifact": + RelatedArtifact = (List)value; + return this; + case "trigger": + Trigger = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Evidence.cs b/src/Hl7.Fhir.R4B/Model/Generated/Evidence.cs index d28c1540be..1620b7803c 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Evidence.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Evidence.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -292,6 +292,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "note": + Note = (List)value; + return this; + case "variableRole": + VariableRole = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "observed": + Observed = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "intended": + Intended = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "directnessMatch": + DirectnessMatch = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -654,6 +682,46 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "note": + Note = (List)value; + return this; + case "statisticType": + StatisticType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "numberOfEvents": + NumberOfEventsElement = (Hl7.Fhir.Model.UnsignedInt)value; + return this; + case "numberAffected": + NumberAffectedElement = (Hl7.Fhir.Model.UnsignedInt)value; + return this; + case "sampleSize": + SampleSize = (Hl7.Fhir.Model.Evidence.SampleSizeComponent)value; + return this; + case "attributeEstimate": + AttributeEstimate = (List)value; + return this; + case "modelCharacteristic": + ModelCharacteristic = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -930,6 +998,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "note": + Note = (List)value; + return this; + case "numberOfStudies": + NumberOfStudiesElement = (Hl7.Fhir.Model.UnsignedInt)value; + return this; + case "numberOfParticipants": + NumberOfParticipantsElement = (Hl7.Fhir.Model.UnsignedInt)value; + return this; + case "knownDataCount": + KnownDataCountElement = (Hl7.Fhir.Model.UnsignedInt)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1212,6 +1305,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "note": + Note = (List)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "level": + LevelElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "range": + Range = (Hl7.Fhir.Model.Range)value; + return this; + case "attributeEstimate": + AttributeEstimate = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1398,6 +1522,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.Quantity)value; + return this; + case "variable": + Variable = (List)value; + return this; + case "attributeEstimate": + AttributeEstimate = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1621,6 +1767,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "variableDefinition": + VariableDefinition = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "handling": + HandlingElement = (Code)value; + return this; + case "valueCategory": + ValueCategory = (List)value; + return this; + case "valueQuantity": + ValueQuantity = (List)value; + return this; + case "valueRange": + ValueRange = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1883,6 +2054,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "note": + Note = (List)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "rating": + Rating = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "rater": + RaterElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "subcomponent": + Subcomponent = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2690,6 +2889,91 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "citeAs": + CiteAs = (Hl7.Fhir.Model.DataType)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "approvalDate": + ApprovalDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "lastReviewDate": + LastReviewDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "author": + Author = (List)value; + return this; + case "editor": + Editor = (List)value; + return this; + case "reviewer": + Reviewer = (List)value; + return this; + case "endorser": + Endorser = (List)value; + return this; + case "relatedArtifact": + RelatedArtifact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "assertion": + AssertionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "note": + Note = (List)value; + return this; + case "variableDefinition": + VariableDefinition = (List)value; + return this; + case "synthesisType": + SynthesisType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "studyType": + StudyType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "statistic": + Statistic = (List)value; + return this; + case "certainty": + Certainty = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/EvidenceReport.cs b/src/Hl7.Fhir.R4B/Model/Generated/EvidenceReport.cs index 0bf1599420..e003511c2d 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/EvidenceReport.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/EvidenceReport.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -246,6 +246,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "characteristic": + Characteristic = (List)value; + return this; + case "note": + Note = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -444,6 +460,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + case "exclude": + ExcludeElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -607,6 +645,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + CodeElement = (Code)value; + return this; + case "target": + Target = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1005,6 +1059,52 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "focus": + Focus = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "focusReference": + FocusReference = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "author": + Author = (List)value; + return this; + case "text": + Text = (Hl7.Fhir.Model.Narrative)value; + return this; + case "mode": + ModeElement = (Code)value; + return this; + case "orderedBy": + OrderedBy = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "entryClassifier": + EntryClassifier = (List)value; + return this; + case "entryReference": + EntryReference = (List)value; + return this; + case "entryQuantity": + EntryQuantity = (List)value; + return this; + case "emptyReason": + EmptyReason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "section": + Section = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1545,6 +1645,70 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "relatedIdentifier": + RelatedIdentifier = (List)value; + return this; + case "citeAs": + CiteAs = (Hl7.Fhir.Model.DataType)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "note": + Note = (List)value; + return this; + case "relatedArtifact": + RelatedArtifact = (List)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.EvidenceReport.SubjectComponent)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "author": + Author = (List)value; + return this; + case "editor": + Editor = (List)value; + return this; + case "reviewer": + Reviewer = (List)value; + return this; + case "endorser": + Endorser = (List)value; + return this; + case "relatesTo": + RelatesTo = (List)value; + return this; + case "section": + Section = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/EvidenceVariable.cs b/src/Hl7.Fhir.R4B/Model/Generated/EvidenceVariable.cs index a097b20870..0c44327aaf 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/EvidenceVariable.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/EvidenceVariable.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -377,6 +377,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "definition": + Definition = (Hl7.Fhir.Model.DataType)value; + return this; + case "method": + Method = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "device": + Device = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "exclude": + ExcludeElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "timeFromStart": + TimeFromStart = (Hl7.Fhir.Model.EvidenceVariable.TimeFromStartComponent)value; + return this; + case "groupMeasure": + GroupMeasureElement = (Code)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -578,6 +609,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "range": + Range = (Hl7.Fhir.Model.Range)value; + return this; + case "note": + Note = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -735,6 +788,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1569,6 +1638,88 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "shortTitle": + ShortTitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "subtitle": + SubtitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "note": + Note = (List)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "author": + Author = (List)value; + return this; + case "editor": + Editor = (List)value; + return this; + case "reviewer": + Reviewer = (List)value; + return this; + case "endorser": + Endorser = (List)value; + return this; + case "relatedArtifact": + RelatedArtifact = (List)value; + return this; + case "actual": + ActualElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "characteristicCombination": + CharacteristicCombinationElement = (Code)value; + return this; + case "characteristic": + Characteristic = (List)value; + return this; + case "handling": + HandlingElement = (Code)value; + return this; + case "category": + Category = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/ExampleScenario.cs b/src/Hl7.Fhir.R4B/Model/Generated/ExampleScenario.cs index 01b910cd45..c598e03f21 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/ExampleScenario.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/ExampleScenario.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -319,6 +319,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "actorId": + ActorIdElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "type": + TypeElement = (Code)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -615,6 +637,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "resourceId": + ResourceIdElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "resourceType": + ResourceTypeElement = (Code)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "version": + Version = (List)value; + return this; + case "containedInstance": + ContainedInstance = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -789,6 +839,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "versionId": + VersionIdElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -961,6 +1027,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "resourceId": + ResourceIdElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "versionId": + VersionIdElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1230,6 +1312,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "preConditions": + PreConditionsElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "postConditions": + PostConditionsElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "step": + Step = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1427,6 +1534,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "process": + Process = (List)value; + return this; + case "pause": + PauseElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "operation": + Operation = (Hl7.Fhir.Model.ExampleScenario.OperationComponent)value; + return this; + case "alternative": + Alternative = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1874,6 +2003,46 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "number": + NumberElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "type": + TypeElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "initiator": + InitiatorElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "receiver": + ReceiverElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "initiatorActive": + InitiatorActiveElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "receiverActive": + ReceiverActiveElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "request": + Request = (Hl7.Fhir.Model.ExampleScenario.ContainedInstanceComponent)value; + return this; + case "response": + Response = (Hl7.Fhir.Model.ExampleScenario.ContainedInstanceComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2076,6 +2245,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "step": + Step = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2704,6 +2892,67 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "actor": + Actor = (List)value; + return this; + case "instance": + Instance = (List)value; + return this; + case "process": + Process = (List)value; + return this; + case "workflow": + WorkflowElement = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/ExplanationOfBenefit.cs b/src/Hl7.Fhir.R4B/Model/Generated/ExplanationOfBenefit.cs index c10fa0b652..afc33908d4 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/ExplanationOfBenefit.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/ExplanationOfBenefit.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -244,6 +244,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "claim": + Claim = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "relationship": + Relationship = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "reference": + Reference = (Hl7.Fhir.Model.Identifier)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -384,6 +403,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "party": + Party = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -624,6 +659,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "provider": + Provider = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "responsible": + ResponsibleElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "role": + Role = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "qualification": + Qualification = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -875,6 +935,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "timing": + Timing = (Hl7.Fhir.Model.DataType)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + case "reason": + Reason = (Hl7.Fhir.Model.Coding)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1105,6 +1193,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "diagnosis": + Diagnosis = (Hl7.Fhir.Model.DataType)value; + return this; + case "type": + Type = (List)value; + return this; + case "onAdmission": + OnAdmission = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "packageCode": + PackageCode = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1353,6 +1466,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "type": + Type = (List)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "procedure": + Procedure = (Hl7.Fhir.Model.DataType)value; + return this; + case "udi": + Udi = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1554,6 +1692,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "focal": + FocalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "coverage": + Coverage = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "preAuthRef": + PreAuthRefElement = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1733,6 +1890,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "date": + DateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "location": + Location = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2467,6 +2643,85 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "careTeamSequence": + CareTeamSequenceElement = (List)value; + return this; + case "diagnosisSequence": + DiagnosisSequenceElement = (List)value; + return this; + case "procedureSequence": + ProcedureSequenceElement = (List)value; + return this; + case "informationSequence": + InformationSequenceElement = (List)value; + return this; + case "revenue": + Revenue = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "productOrService": + ProductOrService = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "modifier": + Modifier = (List)value; + return this; + case "programCode": + ProgramCode = (List)value; + return this; + case "serviced": + Serviced = (Hl7.Fhir.Model.DataType)value; + return this; + case "location": + Location = (Hl7.Fhir.Model.DataType)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "unitPrice": + UnitPrice = (Hl7.Fhir.Model.Money)value; + return this; + case "factor": + FactorElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "net": + Net = (Hl7.Fhir.Model.Money)value; + return this; + case "udi": + Udi = (List)value; + return this; + case "bodySite": + BodySite = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subSite": + SubSite = (List)value; + return this; + case "encounter": + Encounter = (List)value; + return this; + case "noteNumber": + NoteNumberElement = (List)value; + return this; + case "adjudication": + Adjudication = (List)value; + return this; + case "detail": + Detail = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2686,6 +2941,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "reason": + Reason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "amount": + Amount = (Hl7.Fhir.Model.Money)value; + return this; + case "value": + ValueElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3144,6 +3421,58 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "revenue": + Revenue = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "productOrService": + ProductOrService = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "modifier": + Modifier = (List)value; + return this; + case "programCode": + ProgramCode = (List)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "unitPrice": + UnitPrice = (Hl7.Fhir.Model.Money)value; + return this; + case "factor": + FactorElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "net": + Net = (Hl7.Fhir.Model.Money)value; + return this; + case "udi": + Udi = (List)value; + return this; + case "noteNumber": + NoteNumberElement = (List)value; + return this; + case "adjudication": + Adjudication = (List)value; + return this; + case "subDetail": + SubDetail = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3590,6 +3919,55 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "revenue": + Revenue = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "productOrService": + ProductOrService = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "modifier": + Modifier = (List)value; + return this; + case "programCode": + ProgramCode = (List)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "unitPrice": + UnitPrice = (Hl7.Fhir.Model.Money)value; + return this; + case "factor": + FactorElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "net": + Net = (Hl7.Fhir.Model.Money)value; + return this; + case "udi": + Udi = (List)value; + return this; + case "noteNumber": + NoteNumberElement = (List)value; + return this; + case "adjudication": + Adjudication = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -4186,6 +4564,70 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "itemSequence": + ItemSequenceElement = (List)value; + return this; + case "detailSequence": + DetailSequenceElement = (List)value; + return this; + case "subDetailSequence": + SubDetailSequenceElement = (List)value; + return this; + case "provider": + Provider = (List)value; + return this; + case "productOrService": + ProductOrService = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "modifier": + Modifier = (List)value; + return this; + case "programCode": + ProgramCode = (List)value; + return this; + case "serviced": + Serviced = (Hl7.Fhir.Model.DataType)value; + return this; + case "location": + Location = (Hl7.Fhir.Model.DataType)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "unitPrice": + UnitPrice = (Hl7.Fhir.Model.Money)value; + return this; + case "factor": + FactorElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "net": + Net = (Hl7.Fhir.Model.Money)value; + return this; + case "bodySite": + BodySite = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subSite": + SubSite = (List)value; + return this; + case "noteNumber": + NoteNumberElement = (List)value; + return this; + case "adjudication": + Adjudication = (List)value; + return this; + case "detail": + Detail = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -4527,6 +4969,43 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "productOrService": + ProductOrService = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "modifier": + Modifier = (List)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "unitPrice": + UnitPrice = (Hl7.Fhir.Model.Money)value; + return this; + case "factor": + FactorElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "net": + Net = (Hl7.Fhir.Model.Money)value; + return this; + case "noteNumber": + NoteNumberElement = (List)value; + return this; + case "adjudication": + Adjudication = (List)value; + return this; + case "subDetail": + SubDetail = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -4837,6 +5316,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "productOrService": + ProductOrService = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "modifier": + Modifier = (List)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "unitPrice": + UnitPrice = (Hl7.Fhir.Model.Money)value; + return this; + case "factor": + FactorElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "net": + Net = (Hl7.Fhir.Model.Money)value; + return this; + case "noteNumber": + NoteNumberElement = (List)value; + return this; + case "adjudication": + Adjudication = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -4982,6 +5495,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "amount": + Amount = (Hl7.Fhir.Model.Money)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -5221,6 +5750,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "adjustment": + Adjustment = (Hl7.Fhir.Model.Money)value; + return this; + case "adjustmentReason": + AdjustmentReason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "amount": + Amount = (Hl7.Fhir.Model.Money)value; + return this; + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -5459,6 +6016,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "number": + NumberElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "type": + TypeElement = (Code)value; + return this; + case "text": + TextElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "language": + Language = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -5779,6 +6358,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "excluded": + ExcludedElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "network": + Network = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "unit": + Unit = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "term": + Term = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "financial": + Financial = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -5947,6 +6560,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "allowed": + Allowed = (Hl7.Fhir.Model.DataType)value; + return this; + case "used": + Used = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -7110,6 +7742,145 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subType": + SubType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "use": + UseElement = (Code)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "billablePeriod": + BillablePeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "created": + CreatedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "enterer": + Enterer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "insurer": + Insurer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "provider": + Provider = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "priority": + Priority = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "fundsReserveRequested": + FundsReserveRequested = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "fundsReserve": + FundsReserve = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "related": + Related = (List)value; + return this; + case "prescription": + Prescription = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "originalPrescription": + OriginalPrescription = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "payee": + Payee = (Hl7.Fhir.Model.ExplanationOfBenefit.PayeeComponent)value; + return this; + case "referral": + Referral = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "facility": + Facility = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "claim": + Claim = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "claimResponse": + ClaimResponse = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "outcome": + OutcomeElement = (Code)value; + return this; + case "disposition": + DispositionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "preAuthRef": + PreAuthRefElement = (List)value; + return this; + case "preAuthRefPeriod": + PreAuthRefPeriod = (List)value; + return this; + case "careTeam": + CareTeam = (List)value; + return this; + case "supportingInfo": + SupportingInfo = (List)value; + return this; + case "diagnosis": + Diagnosis = (List)value; + return this; + case "procedure": + Procedure = (List)value; + return this; + case "precedence": + PrecedenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "insurance": + Insurance = (List)value; + return this; + case "accident": + Accident = (Hl7.Fhir.Model.ExplanationOfBenefit.AccidentComponent)value; + return this; + case "item": + Item = (List)value; + return this; + case "addItem": + AddItem = (List)value; + return this; + case "adjudication": + Adjudication = (List)value; + return this; + case "total": + Total = (List)value; + return this; + case "payment": + Payment = (Hl7.Fhir.Model.ExplanationOfBenefit.PaymentComponent)value; + return this; + case "formCode": + FormCode = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "form": + Form = (Hl7.Fhir.Model.Attachment)value; + return this; + case "processNote": + ProcessNote = (List)value; + return this; + case "benefitPeriod": + BenefitPeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "benefitBalance": + BenefitBalance = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Expression.cs b/src/Hl7.Fhir.R4B/Model/Generated/Expression.cs index bc749e16e6..1ad43775f2 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Expression.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Expression.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -323,6 +323,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.Id)value; + return this; + case "language": + LanguageElement = (Hl7.Fhir.Model.Code)value; + return this; + case "expression": + ExpressionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "reference": + ReferenceElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/FamilyMemberHistory.cs b/src/Hl7.Fhir.R4B/Model/Generated/FamilyMemberHistory.cs index e71172a1b3..571fd66183 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/FamilyMemberHistory.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/FamilyMemberHistory.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -306,6 +306,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "outcome": + Outcome = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "contributedToDeath": + ContributedToDeathElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "onset": + Onset = (Hl7.Fhir.Model.DataType)value; + return this; + case "note": + Note = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -899,6 +924,70 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "instantiatesCanonical": + InstantiatesCanonicalElement = (List)value; + return this; + case "instantiatesUri": + InstantiatesUriElement = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "dataAbsentReason": + DataAbsentReason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "relationship": + Relationship = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "sex": + Sex = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "born": + Born = (Hl7.Fhir.Model.DataType)value; + return this; + case "age": + Age = (Hl7.Fhir.Model.DataType)value; + return this; + case "estimatedAge": + EstimatedAgeElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "deceased": + Deceased = (Hl7.Fhir.Model.DataType)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "reasonReference": + ReasonReference = (List)value; + return this; + case "note": + Note = (List)value; + return this; + case "condition": + Condition = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Flag.cs b/src/Hl7.Fhir.R4B/Model/Generated/Flag.cs index 1ca0179b84..dbd7c9e42a 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Flag.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Flag.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -357,6 +357,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "category": + Category = (List)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "author": + Author = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Goal.cs b/src/Hl7.Fhir.R4B/Model/Generated/Goal.cs index b115c11435..0163423be0 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Goal.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Goal.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -278,6 +278,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "measure": + Measure = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "detail": + Detail = (Hl7.Fhir.Model.DataType)value; + return this; + case "due": + Due = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -775,6 +794,64 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "lifecycleStatus": + LifecycleStatusElement = (Code)value; + return this; + case "achievementStatus": + AchievementStatus = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "category": + Category = (List)value; + return this; + case "priority": + Priority = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "description": + Description = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "start": + Start = (Hl7.Fhir.Model.DataType)value; + return this; + case "target": + Target = (List)value; + return this; + case "statusDate": + StatusDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "statusReason": + StatusReasonElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "expressedBy": + ExpressedBy = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "addresses": + Addresses = (List)value; + return this; + case "note": + Note = (List)value; + return this; + case "outcomeCode": + OutcomeCode = (List)value; + return this; + case "outcomeReference": + OutcomeReference = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/GraphDefinition.cs b/src/Hl7.Fhir.R4B/Model/Generated/GraphDefinition.cs index 7b92765627..fac6f406b0 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/GraphDefinition.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/GraphDefinition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -413,6 +413,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "path": + PathElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "sliceName": + SliceNameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "min": + MinElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "max": + MaxElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "target": + Target = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -671,6 +699,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "params": + ParamsElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "profile": + ProfileElement = (Hl7.Fhir.Model.Canonical)value; + return this; + case "compartment": + Compartment = (List)value; + return this; + case "link": + Link = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -968,6 +1021,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "use": + UseElement = (Code)value; + return this; + case "code": + CodeElement = (Code)value; + return this; + case "rule": + RuleElement = (Code)value; + return this; + case "expression": + ExpressionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1572,6 +1650,61 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "start": + StartElement = (Code)value; + return this; + case "profile": + ProfileElement = (Hl7.Fhir.Model.Canonical)value; + return this; + case "link": + Link = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Group.cs b/src/Hl7.Fhir.R4B/Model/Generated/Group.cs index 50b0ca3794..4600f4b1f1 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Group.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Group.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -300,6 +300,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + case "exclude": + ExcludeElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -479,6 +501,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "entity": + Entity = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "inactive": + InactiveElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -868,6 +909,46 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "active": + ActiveElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "type": + TypeElement = (Code)value; + return this; + case "actual": + ActualElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "quantity": + QuantityElement = (Hl7.Fhir.Model.UnsignedInt)value; + return this; + case "managingEntity": + ManagingEntity = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "characteristic": + Characteristic = (List)value; + return this; + case "member": + Member = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/GuidanceResponse.cs b/src/Hl7.Fhir.R4B/Model/Generated/GuidanceResponse.cs index 18a7add531..fdb47cd016 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/GuidanceResponse.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/GuidanceResponse.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -551,6 +551,61 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "requestIdentifier": + RequestIdentifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "module": + Module = (Hl7.Fhir.Model.DataType)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "occurrenceDateTime": + OccurrenceDateTimeElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "performer": + Performer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "reasonReference": + ReasonReference = (List)value; + return this; + case "note": + Note = (List)value; + return this; + case "evaluationMessage": + EvaluationMessage = (List)value; + return this; + case "outputParameters": + OutputParameters = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "result": + Result = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "dataRequirement": + DataRequirement = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/HealthcareService.cs b/src/Hl7.Fhir.R4B/Model/Generated/HealthcareService.cs index 6c1433635f..c49dcc35ca 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/HealthcareService.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/HealthcareService.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -201,6 +201,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "comment": + CommentElement = (Hl7.Fhir.Model.Markdown)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -454,6 +470,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "daysOfWeek": + DaysOfWeekElement = (List>)value; + return this; + case "allDay": + AllDayElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "availableStartTime": + AvailableStartTimeElement = (Hl7.Fhir.Model.Time)value; + return this; + case "availableEndTime": + AvailableEndTimeElement = (Hl7.Fhir.Model.Time)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -610,6 +648,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "during": + During = (Hl7.Fhir.Model.Period)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1332,6 +1386,88 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "active": + ActiveElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "providedBy": + ProvidedBy = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "category": + Category = (List)value; + return this; + case "type": + Type = (List)value; + return this; + case "specialty": + Specialty = (List)value; + return this; + case "location": + Location = (List)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "comment": + CommentElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "extraDetails": + ExtraDetailsElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "photo": + Photo = (Hl7.Fhir.Model.Attachment)value; + return this; + case "telecom": + Telecom = (List)value; + return this; + case "coverageArea": + CoverageArea = (List)value; + return this; + case "serviceProvisionCode": + ServiceProvisionCode = (List)value; + return this; + case "eligibility": + Eligibility = (List)value; + return this; + case "program": + Program = (List)value; + return this; + case "characteristic": + Characteristic = (List)value; + return this; + case "communication": + Communication = (List)value; + return this; + case "referralMethod": + ReferralMethod = (List)value; + return this; + case "appointmentRequired": + AppointmentRequiredElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "availableTime": + AvailableTime = (List)value; + return this; + case "notAvailable": + NotAvailable = (List)value; + return this; + case "availabilityExceptions": + AvailabilityExceptionsElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "endpoint": + Endpoint = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/HumanName.cs b/src/Hl7.Fhir.R4B/Model/Generated/HumanName.cs index 87ffdafd88..f8583400bf 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/HumanName.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/HumanName.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -439,6 +439,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "use": + UseElement = (Code)value; + return this; + case "text": + TextElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "family": + FamilyElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "given": + GivenElement = (List)value; + return this; + case "prefix": + PrefixElement = (List)value; + return this; + case "suffix": + SuffixElement = (List)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/ImagingStudy.cs b/src/Hl7.Fhir.R4B/Model/Generated/ImagingStudy.cs index d229090fbe..cca6524870 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/ImagingStudy.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/ImagingStudy.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -538,6 +538,52 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "uid": + UidElement = (Hl7.Fhir.Model.Id)value; + return this; + case "number": + NumberElement = (Hl7.Fhir.Model.UnsignedInt)value; + return this; + case "modality": + Modality = (Hl7.Fhir.Model.Coding)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "numberOfInstances": + NumberOfInstancesElement = (Hl7.Fhir.Model.UnsignedInt)value; + return this; + case "endpoint": + Endpoint = (List)value; + return this; + case "bodySite": + BodySite = (Hl7.Fhir.Model.Coding)value; + return this; + case "laterality": + Laterality = (Hl7.Fhir.Model.Coding)value; + return this; + case "specimen": + Specimen = (List)value; + return this; + case "started": + StartedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "performer": + Performer = (List)value; + return this; + case "instance": + Instance = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -688,6 +734,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "function": + Function = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "actor": + Actor = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -922,6 +984,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "uid": + UidElement = (Hl7.Fhir.Model.Id)value; + return this; + case "sopClass": + SopClass = (Hl7.Fhir.Model.Coding)value; + return this; + case "number": + NumberElement = (Hl7.Fhir.Model.UnsignedInt)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1547,6 +1631,76 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "modality": + Modality = (List)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "started": + StartedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "referrer": + Referrer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "interpreter": + Interpreter = (List)value; + return this; + case "endpoint": + Endpoint = (List)value; + return this; + case "numberOfSeries": + NumberOfSeriesElement = (Hl7.Fhir.Model.UnsignedInt)value; + return this; + case "numberOfInstances": + NumberOfInstancesElement = (Hl7.Fhir.Model.UnsignedInt)value; + return this; + case "procedureReference": + ProcedureReference = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "procedureCode": + ProcedureCode = (List)value; + return this; + case "location": + Location = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "reasonReference": + ReasonReference = (List)value; + return this; + case "note": + Note = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "series": + Series = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Immunization.cs b/src/Hl7.Fhir.R4B/Model/Generated/Immunization.cs index 6dee0d5564..08fca3e75c 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Immunization.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Immunization.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -217,6 +217,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "function": + Function = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "actor": + Actor = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -466,6 +482,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "documentType": + DocumentTypeElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "reference": + ReferenceElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "publicationDate": + PublicationDateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "presentationDate": + PresentationDateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -663,6 +701,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "detail": + Detail = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "reported": + ReportedElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -889,6 +946,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "series": + SeriesElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "authority": + Authority = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "targetDisease": + TargetDisease = (List)value; + return this; + case "doseNumber": + DoseNumber = (Hl7.Fhir.Model.DataType)value; + return this; + case "seriesDoses": + SeriesDoses = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1703,6 +1785,100 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "statusReason": + StatusReason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "vaccineCode": + VaccineCode = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "occurrence": + Occurrence = (Hl7.Fhir.Model.DataType)value; + return this; + case "recorded": + RecordedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "primarySource": + PrimarySourceElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "reportOrigin": + ReportOrigin = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "location": + Location = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "manufacturer": + Manufacturer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "lotNumber": + LotNumberElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "expirationDate": + ExpirationDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "site": + Site = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "route": + Route = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "doseQuantity": + DoseQuantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "performer": + Performer = (List)value; + return this; + case "note": + Note = (List)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "reasonReference": + ReasonReference = (List)value; + return this; + case "isSubpotent": + IsSubpotentElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "subpotentReason": + SubpotentReason = (List)value; + return this; + case "education": + Education = (List)value; + return this; + case "programEligibility": + ProgramEligibility = (List)value; + return this; + case "fundingSource": + FundingSource = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "reaction": + Reaction = (List)value; + return this; + case "protocolApplied": + ProtocolApplied = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/ImmunizationEvaluation.cs b/src/Hl7.Fhir.R4B/Model/Generated/ImmunizationEvaluation.cs index 55f9024021..064428acb9 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/ImmunizationEvaluation.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/ImmunizationEvaluation.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -517,6 +517,55 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "authority": + Authority = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "targetDisease": + TargetDisease = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "immunizationEvent": + ImmunizationEvent = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "doseStatus": + DoseStatus = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "doseStatusReason": + DoseStatusReason = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "series": + SeriesElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "doseNumber": + DoseNumber = (Hl7.Fhir.Model.DataType)value; + return this; + case "seriesDoses": + SeriesDoses = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/ImmunizationRecommendation.cs b/src/Hl7.Fhir.R4B/Model/Generated/ImmunizationRecommendation.cs index 2f96362c59..3392b979b7 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/ImmunizationRecommendation.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/ImmunizationRecommendation.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -448,6 +448,52 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "vaccineCode": + VaccineCode = (List)value; + return this; + case "targetDisease": + TargetDisease = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "contraindicatedVaccineCode": + ContraindicatedVaccineCode = (List)value; + return this; + case "forecastStatus": + ForecastStatus = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "forecastReason": + ForecastReason = (List)value; + return this; + case "dateCriterion": + DateCriterion = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "series": + SeriesElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "doseNumber": + DoseNumber = (Hl7.Fhir.Model.DataType)value; + return this; + case "seriesDoses": + SeriesDoses = (Hl7.Fhir.Model.DataType)value; + return this; + case "supportingImmunization": + SupportingImmunization = (List)value; + return this; + case "supportingPatientInformation": + SupportingPatientInformation = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -614,6 +660,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "value": + ValueElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -823,6 +885,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "authority": + Authority = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "recommendation": + Recommendation = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/ImplementationGuide.cs b/src/Hl7.Fhir.R4B/Model/Generated/ImplementationGuide.cs index 20a17835cb..8cb307c6aa 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/ImplementationGuide.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/ImplementationGuide.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -2451,6 +2451,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "uri": + UriElement = (Hl7.Fhir.Model.Canonical)value; + return this; + case "packageId": + PackageIdElement = (Hl7.Fhir.Model.Id)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2628,6 +2647,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "profile": + ProfileElement = (Hl7.Fhir.Model.Canonical)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2831,6 +2866,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "grouping": + Grouping = (List)value; + return this; + case "resource": + Resource = (List)value; + return this; + case "page": + Page = (Hl7.Fhir.Model.ImplementationGuide.PageComponent)value; + return this; + case "parameter": + Parameter = (List)value; + return this; + case "template": + Template = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3007,6 +3067,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3306,6 +3382,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "reference": + Reference = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "fhirVersion": + FhirVersionElement = (List>)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "example": + Example = (Hl7.Fhir.Model.DataType)value; + return this; + case "groupingId": + GroupingIdElement = (Hl7.Fhir.Model.Id)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3533,6 +3637,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + Name = (Hl7.Fhir.Model.DataType)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "generation": + GenerationElement = (Code)value; + return this; + case "page": + Page = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3707,6 +3833,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + CodeElement = (Code)value; + return this; + case "value": + ValueElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3916,6 +4058,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + CodeElement = (Hl7.Fhir.Model.Code)value; + return this; + case "source": + SourceElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "scope": + ScopeElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -4173,6 +4334,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "rendering": + RenderingElement = (Hl7.Fhir.Model.FhirUrl)value; + return this; + case "resource": + Resource = (List)value; + return this; + case "page": + Page = (List)value; + return this; + case "image": + ImageElement = (List)value; + return this; + case "other": + OtherElement = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -4355,6 +4541,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "reference": + Reference = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "example": + Example = (Hl7.Fhir.Model.DataType)value; + return this; + case "relativePath": + RelativePathElement = (Hl7.Fhir.Model.FhirUrl)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -4568,6 +4773,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "anchor": + AnchorElement = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -5316,6 +5540,76 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "packageId": + PackageIdElement = (Hl7.Fhir.Model.Id)value; + return this; + case "license": + LicenseElement = (Code)value; + return this; + case "fhirVersion": + FhirVersionElement = (List>)value; + return this; + case "dependsOn": + DependsOn = (List)value; + return this; + case "global": + Global = (List)value; + return this; + case "definition": + Definition = (Hl7.Fhir.Model.ImplementationGuide.DefinitionComponent)value; + return this; + case "manifest": + Manifest = (Hl7.Fhir.Model.ImplementationGuide.ManifestComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Ingredient.cs b/src/Hl7.Fhir.R4B/Model/Generated/Ingredient.cs index 1442021e62..d17cd21f3c 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Ingredient.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Ingredient.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -233,6 +233,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "role": + RoleElement = (Code)value; + return this; + case "manufacturer": + Manufacturer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -368,6 +384,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableReference)value; + return this; + case "strength": + Strength = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -669,6 +701,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "presentation": + Presentation = (Hl7.Fhir.Model.DataType)value; + return this; + case "textPresentation": + TextPresentationElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "concentration": + Concentration = (Hl7.Fhir.Model.DataType)value; + return this; + case "textConcentration": + TextConcentrationElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "measurementPoint": + MeasurementPointElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "country": + Country = (List)value; + return this; + case "referenceStrength": + ReferenceStrength = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -875,6 +938,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "substance": + Substance = (Hl7.Fhir.Model.CodeableReference)value; + return this; + case "strength": + Strength = (Hl7.Fhir.Model.DataType)value; + return this; + case "measurementPoint": + MeasurementPointElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "country": + Country = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1171,6 +1256,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "for": + For = (List)value; + return this; + case "role": + Role = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "function": + Function = (List)value; + return this; + case "allergenicIndicator": + AllergenicIndicatorElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "manufacturer": + Manufacturer = (List)value; + return this; + case "substance": + Substance = (Hl7.Fhir.Model.Ingredient.SubstanceComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/InsurancePlan.cs b/src/Hl7.Fhir.R4B/Model/Generated/InsurancePlan.cs index 6c384d7627..d0507e9de4 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/InsurancePlan.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/InsurancePlan.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -255,6 +255,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "purpose": + Purpose = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "name": + Name = (Hl7.Fhir.Model.HumanName)value; + return this; + case "telecom": + Telecom = (List)value; + return this; + case "address": + Address = (Hl7.Fhir.Model.Address)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -418,6 +440,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "network": + Network = (List)value; + return this; + case "benefit": + Benefit = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -595,6 +636,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "requirement": + RequirementElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "limit": + Limit = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -731,6 +791,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "value": + Value = (Hl7.Fhir.Model.Quantity)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -959,6 +1035,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "coverageArea": + CoverageArea = (List)value; + return this; + case "network": + Network = (List)value; + return this; + case "generalCost": + GeneralCost = (List)value; + return this; + case "specificCost": + SpecificCost = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1176,6 +1280,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "groupSize": + GroupSizeElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "cost": + Cost = (Hl7.Fhir.Model.Money)value; + return this; + case "comment": + CommentElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1315,6 +1441,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "benefit": + Benefit = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1452,6 +1594,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "cost": + Cost = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1632,6 +1790,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "applicability": + Applicability = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "qualifiers": + Qualifiers = (List)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.Quantity)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2082,6 +2262,58 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "type": + Type = (List)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "alias": + AliasElement = (List)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "ownedBy": + OwnedBy = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "administeredBy": + AdministeredBy = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "coverageArea": + CoverageArea = (List)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "endpoint": + Endpoint = (List)value; + return this; + case "network": + Network = (List)value; + return this; + case "coverage": + Coverage = (List)value; + return this; + case "plan": + Plan = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Invoice.cs b/src/Hl7.Fhir.R4B/Model/Generated/Invoice.cs index 5162895874..7c41ae7b39 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Invoice.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Invoice.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -228,6 +228,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "role": + Role = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "actor": + Actor = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -407,6 +423,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "chargeItem": + ChargeItem = (Hl7.Fhir.Model.DataType)value; + return this; + case "priceComponent": + PriceComponent = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -624,6 +659,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "factor": + FactorElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "amount": + Amount = (Hl7.Fhir.Model.Money)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1128,6 +1185,64 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "cancelledReason": + CancelledReasonElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "recipient": + Recipient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "participant": + Participant = (List)value; + return this; + case "issuer": + Issuer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "account": + Account = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "lineItem": + LineItem = (List)value; + return this; + case "totalPriceComponent": + TotalPriceComponent = (List)value; + return this; + case "totalNet": + TotalNet = (Hl7.Fhir.Model.Money)value; + return this; + case "totalGross": + TotalGross = (Hl7.Fhir.Model.Money)value; + return this; + case "paymentTerms": + PaymentTermsElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "note": + Note = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Library.cs b/src/Hl7.Fhir.R4B/Model/Generated/Library.cs index 3fc98a1c71..39e6da393a 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Library.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Library.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -1073,6 +1073,109 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "subtitle": + SubtitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.DataType)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "usage": + UsageElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "approvalDate": + ApprovalDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "lastReviewDate": + LastReviewDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "effectivePeriod": + EffectivePeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "topic": + Topic = (List)value; + return this; + case "author": + Author = (List)value; + return this; + case "editor": + Editor = (List)value; + return this; + case "reviewer": + Reviewer = (List)value; + return this; + case "endorser": + Endorser = (List)value; + return this; + case "relatedArtifact": + RelatedArtifact = (List)value; + return this; + case "parameter": + Parameter = (List)value; + return this; + case "dataRequirement": + DataRequirement = (List)value; + return this; + case "content": + Content = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Linkage.cs b/src/Hl7.Fhir.R4B/Model/Generated/Linkage.cs index a6087b3e2d..6a73c70cad 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Linkage.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Linkage.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -237,6 +237,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "resource": + Resource = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -397,6 +413,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "active": + ActiveElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "author": + Author = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "item": + Item = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/List.cs b/src/Hl7.Fhir.R4B/Model/Generated/List.cs index 349c5d0133..1dfedfe997 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/List.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/List.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -293,6 +293,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "flag": + Flag = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "deleted": + DeletedElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "item": + Item = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -736,6 +758,55 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "mode": + ModeElement = (Code)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "source": + Source = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "orderedBy": + OrderedBy = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "note": + Note = (List)value; + return this; + case "entry": + Entry = (List)value; + return this; + case "emptyReason": + EmptyReason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Location.cs b/src/Hl7.Fhir.R4B/Model/Generated/Location.cs index 0c7bafe595..8dd95ab273 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Location.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Location.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -312,6 +312,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "longitude": + LongitudeElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "latitude": + LatitudeElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "altitude": + AltitudeElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -566,6 +585,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "daysOfWeek": + DaysOfWeekElement = (List>)value; + return this; + case "allDay": + AllDayElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "openingTime": + OpeningTimeElement = (Hl7.Fhir.Model.Time)value; + return this; + case "closingTime": + ClosingTimeElement = (Hl7.Fhir.Model.Time)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1130,6 +1171,67 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "operationalStatus": + OperationalStatus = (Hl7.Fhir.Model.Coding)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "alias": + AliasElement = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "mode": + ModeElement = (Code)value; + return this; + case "type": + Type = (List)value; + return this; + case "telecom": + Telecom = (List)value; + return this; + case "address": + Address = (Hl7.Fhir.Model.Address)value; + return this; + case "physicalType": + PhysicalType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "position": + Position = (Hl7.Fhir.Model.Location.PositionComponent)value; + return this; + case "managingOrganization": + ManagingOrganization = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "partOf": + PartOf = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "hoursOfOperation": + HoursOfOperation = (List)value; + return this; + case "availabilityExceptions": + AvailabilityExceptionsElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "endpoint": + Endpoint = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/ManufacturedItemDefinition.cs b/src/Hl7.Fhir.R4B/Model/Generated/ManufacturedItemDefinition.cs index 08fafc972f..9f09404555 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/ManufacturedItemDefinition.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/ManufacturedItemDefinition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -183,6 +183,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -439,6 +455,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "manufacturedDoseForm": + ManufacturedDoseForm = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "unitOfPresentation": + UnitOfPresentation = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "manufacturer": + Manufacturer = (List)value; + return this; + case "ingredient": + Ingredient = (List)value; + return this; + case "property": + Property = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/MarketingStatus.cs b/src/Hl7.Fhir.R4B/Model/Generated/MarketingStatus.cs index d83dae258f..f56662f0e6 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/MarketingStatus.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/MarketingStatus.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -247,6 +247,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "country": + Country = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "jurisdiction": + Jurisdiction = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "status": + Status = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "dateRange": + DateRange = (Hl7.Fhir.Model.Period)value; + return this; + case "restoreDate": + RestoreDateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Measure.cs b/src/Hl7.Fhir.R4B/Model/Generated/Measure.cs index 768fc40c2c..8ae6bec83f 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Measure.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Measure.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -248,6 +248,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "population": + Population = (List)value; + return this; + case "stratifier": + Stratifier = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -426,6 +448,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "criteria": + Criteria = (Hl7.Fhir.Model.Expression)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -624,6 +665,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "criteria": + Criteria = (Hl7.Fhir.Model.Expression)value; + return this; + case "component": + Component = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -803,6 +866,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "criteria": + Criteria = (Hl7.Fhir.Model.Expression)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1004,6 +1086,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "usage": + Usage = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "criteria": + Criteria = (Hl7.Fhir.Model.Expression)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2387,6 +2491,139 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "subtitle": + SubtitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.DataType)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "usage": + UsageElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "approvalDate": + ApprovalDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "lastReviewDate": + LastReviewDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "effectivePeriod": + EffectivePeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "topic": + Topic = (List)value; + return this; + case "author": + Author = (List)value; + return this; + case "editor": + Editor = (List)value; + return this; + case "reviewer": + Reviewer = (List)value; + return this; + case "endorser": + Endorser = (List)value; + return this; + case "relatedArtifact": + RelatedArtifact = (List)value; + return this; + case "library": + LibraryElement = (List)value; + return this; + case "disclaimer": + DisclaimerElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "scoring": + Scoring = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "compositeScoring": + CompositeScoring = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "type": + Type = (List)value; + return this; + case "riskAdjustment": + RiskAdjustmentElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "rateAggregation": + RateAggregationElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "rationale": + RationaleElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "clinicalRecommendationStatement": + ClinicalRecommendationStatementElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "improvementNotation": + ImprovementNotation = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "definition": + DefinitionElement = (List)value; + return this; + case "guidance": + GuidanceElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "group": + Group = (List)value; + return this; + case "supplementalData": + SupplementalData = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/MeasureReport.cs b/src/Hl7.Fhir.R4B/Model/Generated/MeasureReport.cs index 4354a7e6e4..51bfa88c08 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/MeasureReport.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/MeasureReport.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -292,6 +292,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "population": + Population = (List)value; + return this; + case "measureScore": + MeasureScore = (Hl7.Fhir.Model.Quantity)value; + return this; + case "stratifier": + Stratifier = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -471,6 +493,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "count": + CountElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "subjectResults": + SubjectResults = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -610,6 +651,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (List)value; + return this; + case "stratum": + Stratum = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -790,6 +847,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "value": + Value = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "component": + Component = (List)value; + return this; + case "population": + Population = (List)value; + return this; + case "measureScore": + MeasureScore = (Hl7.Fhir.Model.Quantity)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -931,6 +1010,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1108,6 +1203,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "count": + CountElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "subjectResults": + SubjectResults = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1508,6 +1622,49 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "type": + TypeElement = (Code)value; + return this; + case "measure": + MeasureElement = (Hl7.Fhir.Model.Canonical)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "reporter": + Reporter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "improvementNotation": + ImprovementNotation = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "group": + Group = (List)value; + return this; + case "evaluatedResource": + EvaluatedResource = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Media.cs b/src/Hl7.Fhir.R4B/Model/Generated/Media.cs index be6e17b498..48695c3b81 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Media.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Media.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -741,6 +741,82 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "partOf": + PartOf = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "modality": + Modality = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "view": + View = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "created": + Created = (Hl7.Fhir.Model.DataType)value; + return this; + case "issued": + IssuedElement = (Hl7.Fhir.Model.Instant)value; + return this; + case "operator": + Operator = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "bodySite": + BodySite = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "deviceName": + DeviceNameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "device": + Device = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "height": + HeightElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "width": + WidthElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "frames": + FramesElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "duration": + DurationElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "content": + Content = (Hl7.Fhir.Model.Attachment)value; + return this; + case "note": + Note = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Medication.cs b/src/Hl7.Fhir.R4B/Model/Generated/Medication.cs index 766f4be923..2926e4d2e9 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Medication.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Medication.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -257,6 +257,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "item": + Item = (Hl7.Fhir.Model.DataType)value; + return this; + case "isActive": + IsActiveElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "strength": + Strength = (Hl7.Fhir.Model.Ratio)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -429,6 +448,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "lotNumber": + LotNumberElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "expirationDate": + ExpirationDateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -701,6 +736,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "manufacturer": + Manufacturer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "form": + Form = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "amount": + Amount = (Hl7.Fhir.Model.Ratio)value; + return this; + case "ingredient": + Ingredient = (List)value; + return this; + case "batch": + Batch = (Hl7.Fhir.Model.Medication.BatchComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/MedicationAdministration.cs b/src/Hl7.Fhir.R4B/Model/Generated/MedicationAdministration.cs index 9a336274b9..5f2f34f134 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/MedicationAdministration.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/MedicationAdministration.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -241,6 +241,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "function": + Function = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "actor": + Actor = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -483,6 +499,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "text": + TextElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "site": + Site = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "route": + Route = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "method": + Method = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "dose": + Dose = (Hl7.Fhir.Model.Quantity)value; + return this; + case "rate": + Rate = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1042,6 +1086,73 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "instantiates": + InstantiatesElement = (List)value; + return this; + case "partOf": + PartOf = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "statusReason": + StatusReason = (List)value; + return this; + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "medication": + Medication = (Hl7.Fhir.Model.DataType)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "context": + Context = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "supportingInformation": + SupportingInformation = (List)value; + return this; + case "effective": + Effective = (Hl7.Fhir.Model.DataType)value; + return this; + case "performer": + Performer = (List)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "reasonReference": + ReasonReference = (List)value; + return this; + case "request": + Request = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "device": + Device = (List)value; + return this; + case "note": + Note = (List)value; + return this; + case "dosage": + Dosage = (Hl7.Fhir.Model.MedicationAdministration.DosageComponent)value; + return this; + case "eventHistory": + EventHistory = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/MedicationDispense.cs b/src/Hl7.Fhir.R4B/Model/Generated/MedicationDispense.cs index 9fcbec5344..9394e76c2e 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/MedicationDispense.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/MedicationDispense.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -253,6 +253,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "function": + Function = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "actor": + Actor = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -455,6 +471,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "wasSubstituted": + WasSubstitutedElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "reason": + Reason = (List)value; + return this; + case "responsibleParty": + ResponsibleParty = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1137,6 +1175,88 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "partOf": + PartOf = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "statusReason": + StatusReason = (Hl7.Fhir.Model.DataType)value; + return this; + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "medication": + Medication = (Hl7.Fhir.Model.DataType)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "context": + Context = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "supportingInformation": + SupportingInformation = (List)value; + return this; + case "performer": + Performer = (List)value; + return this; + case "location": + Location = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "authorizingPrescription": + AuthorizingPrescription = (List)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "daysSupply": + DaysSupply = (Hl7.Fhir.Model.Quantity)value; + return this; + case "whenPrepared": + WhenPreparedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "whenHandedOver": + WhenHandedOverElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "destination": + Destination = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "receiver": + Receiver = (List)value; + return this; + case "note": + Note = (List)value; + return this; + case "dosageInstruction": + DosageInstruction = (List)value; + return this; + case "substitution": + Substitution = (Hl7.Fhir.Model.MedicationDispense.SubstitutionComponent)value; + return this; + case "detectedIssue": + DetectedIssue = (List)value; + return this; + case "eventHistory": + EventHistory = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/MedicationKnowledge.cs b/src/Hl7.Fhir.R4B/Model/Generated/MedicationKnowledge.cs index 7ac1ec4af9..35dc05046f 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/MedicationKnowledge.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/MedicationKnowledge.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -217,6 +217,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "reference": + Reference = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -351,6 +367,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "source": + Source = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -529,6 +561,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "item": + Item = (Hl7.Fhir.Model.DataType)value; + return this; + case "isActive": + IsActiveElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "strength": + Strength = (Hl7.Fhir.Model.Ratio)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -706,6 +757,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "source": + SourceElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "cost": + Cost = (Hl7.Fhir.Model.Money)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -860,6 +930,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1021,6 +1107,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "dosage": + Dosage = (List)value; + return this; + case "indication": + Indication = (Hl7.Fhir.Model.DataType)value; + return this; + case "patientCharacteristics": + PatientCharacteristics = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1156,6 +1261,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "dosage": + Dosage = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1313,6 +1434,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "characteristic": + Characteristic = (Hl7.Fhir.Model.DataType)value; + return this; + case "value": + ValueElement = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1447,6 +1584,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "classification": + Classification = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1583,6 +1736,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1721,6 +1890,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1900,6 +2085,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "regulatoryAuthority": + RegulatoryAuthority = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "substitution": + Substitution = (List)value; + return this; + case "schedule": + Schedule = (List)value; + return this; + case "maxDispense": + MaxDispense = (Hl7.Fhir.Model.MedicationKnowledge.MaxDispenseComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2054,6 +2261,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "allowed": + AllowedElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2166,6 +2389,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "schedule": + Schedule = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2298,6 +2534,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Duration)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2453,6 +2705,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "areaUnderCurve": + AreaUnderCurve = (List)value; + return this; + case "lethalDose50": + LethalDose50 = (List)value; + return this; + case "halfLifePeriod": + HalfLifePeriod = (Hl7.Fhir.Model.Duration)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3072,6 +3343,82 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "manufacturer": + Manufacturer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "doseForm": + DoseForm = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "amount": + Amount = (Hl7.Fhir.Model.Quantity)value; + return this; + case "synonym": + SynonymElement = (List)value; + return this; + case "relatedMedicationKnowledge": + RelatedMedicationKnowledge = (List)value; + return this; + case "associatedMedication": + AssociatedMedication = (List)value; + return this; + case "productType": + ProductType = (List)value; + return this; + case "monograph": + Monograph = (List)value; + return this; + case "ingredient": + Ingredient = (List)value; + return this; + case "preparationInstruction": + PreparationInstructionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "intendedRoute": + IntendedRoute = (List)value; + return this; + case "cost": + Cost = (List)value; + return this; + case "monitoringProgram": + MonitoringProgram = (List)value; + return this; + case "administrationGuidelines": + AdministrationGuidelines = (List)value; + return this; + case "medicineClassification": + MedicineClassification = (List)value; + return this; + case "packaging": + Packaging = (Hl7.Fhir.Model.MedicationKnowledge.PackagingComponent)value; + return this; + case "drugCharacteristic": + DrugCharacteristic = (List)value; + return this; + case "contraindication": + Contraindication = (List)value; + return this; + case "regulatory": + Regulatory = (List)value; + return this; + case "kinetics": + Kinetics = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/MedicationRequest.cs b/src/Hl7.Fhir.R4B/Model/Generated/MedicationRequest.cs index 3d34a3d70b..e1db458a25 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/MedicationRequest.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/MedicationRequest.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -426,6 +426,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "initialFill": + InitialFill = (Hl7.Fhir.Model.MedicationRequest.InitialFillComponent)value; + return this; + case "dispenseInterval": + DispenseInterval = (Hl7.Fhir.Model.Duration)value; + return this; + case "validityPeriod": + ValidityPeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "numberOfRepeatsAllowed": + NumberOfRepeatsAllowedElement = (Hl7.Fhir.Model.UnsignedInt)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "expectedSupplyDuration": + ExpectedSupplyDuration = (Hl7.Fhir.Model.Duration)value; + return this; + case "performer": + Performer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -567,6 +598,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "duration": + Duration = (Hl7.Fhir.Model.Duration)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -707,6 +754,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "allowed": + Allowed = (Hl7.Fhir.Model.DataType)value; + return this; + case "reason": + Reason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1642,6 +1705,112 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "statusReason": + StatusReason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "intent": + IntentElement = (Code)value; + return this; + case "category": + Category = (List)value; + return this; + case "priority": + PriorityElement = (Code)value; + return this; + case "doNotPerform": + DoNotPerformElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "reported": + Reported = (Hl7.Fhir.Model.DataType)value; + return this; + case "medication": + Medication = (Hl7.Fhir.Model.DataType)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "supportingInformation": + SupportingInformation = (List)value; + return this; + case "authoredOn": + AuthoredOnElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "requester": + Requester = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "performer": + Performer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "performerType": + PerformerType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "recorder": + Recorder = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "reasonReference": + ReasonReference = (List)value; + return this; + case "instantiatesCanonical": + InstantiatesCanonicalElement = (List)value; + return this; + case "instantiatesUri": + InstantiatesUriElement = (List)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "groupIdentifier": + GroupIdentifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "courseOfTherapyType": + CourseOfTherapyType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "insurance": + Insurance = (List)value; + return this; + case "note": + Note = (List)value; + return this; + case "dosageInstruction": + DosageInstruction = (List)value; + return this; + case "dispenseRequest": + DispenseRequest = (Hl7.Fhir.Model.MedicationRequest.DispenseRequestComponent)value; + return this; + case "substitution": + Substitution = (Hl7.Fhir.Model.MedicationRequest.SubstitutionComponent)value; + return this; + case "priorPrescription": + PriorPrescription = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "detectedIssue": + DetectedIssue = (List)value; + return this; + case "eventHistory": + EventHistory = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/MedicationStatement.cs b/src/Hl7.Fhir.R4B/Model/Generated/MedicationStatement.cs index 5d8224f289..6c095be1ab 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/MedicationStatement.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/MedicationStatement.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -627,6 +627,67 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "partOf": + PartOf = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "statusReason": + StatusReason = (List)value; + return this; + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "medication": + Medication = (Hl7.Fhir.Model.DataType)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "context": + Context = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "effective": + Effective = (Hl7.Fhir.Model.DataType)value; + return this; + case "dateAsserted": + DateAssertedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "informationSource": + InformationSource = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "derivedFrom": + DerivedFrom = (List)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "reasonReference": + ReasonReference = (List)value; + return this; + case "note": + Note = (List)value; + return this; + case "dosage": + Dosage = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/MedicinalProductDefinition.cs b/src/Hl7.Fhir.R4B/Model/Generated/MedicinalProductDefinition.cs index 90083ecd71..d4ba0a2bdc 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/MedicinalProductDefinition.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/MedicinalProductDefinition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -186,6 +186,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "contact": + Contact = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -382,6 +398,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "productName": + ProductNameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "namePart": + NamePart = (List)value; + return this; + case "countryLanguage": + CountryLanguage = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -537,6 +575,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "part": + PartElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -698,6 +752,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "country": + Country = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "jurisdiction": + Jurisdiction = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "language": + Language = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -836,6 +909,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "product": + Product = (Hl7.Fhir.Model.CodeableReference)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1017,6 +1106,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableReference)value; + return this; + case "effectiveDate": + EffectiveDate = (Hl7.Fhir.Model.Period)value; + return this; + case "organization": + Organization = (List)value; + return this; + case "confidentialityIndicator": + ConfidentialityIndicator = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1158,6 +1269,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1933,6 +2060,100 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "domain": + Domain = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + Status = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "statusDate": + StatusDateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "combinedPharmaceuticalDoseForm": + CombinedPharmaceuticalDoseForm = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "route": + Route = (List)value; + return this; + case "indication": + IndicationElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "legalStatusOfSupply": + LegalStatusOfSupply = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "additionalMonitoringIndicator": + AdditionalMonitoringIndicator = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "specialMeasures": + SpecialMeasures = (List)value; + return this; + case "pediatricUseIndicator": + PediatricUseIndicator = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "classification": + Classification = (List)value; + return this; + case "marketingStatus": + MarketingStatus = (List)value; + return this; + case "packagedMedicinalProduct": + PackagedMedicinalProduct = (List)value; + return this; + case "ingredient": + Ingredient = (List)value; + return this; + case "impurity": + Impurity = (List)value; + return this; + case "attachedDocument": + AttachedDocument = (List)value; + return this; + case "masterFile": + MasterFile = (List)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "clinicalTrial": + ClinicalTrial = (List)value; + return this; + case "code": + Code = (List)value; + return this; + case "name": + Name = (List)value; + return this; + case "crossReference": + CrossReference = (List)value; + return this; + case "operation": + Operation = (List)value; + return this; + case "characteristic": + Characteristic = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/MessageDefinition.cs b/src/Hl7.Fhir.R4B/Model/Generated/MessageDefinition.cs index ce8c28fdb2..b0842490f4 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/MessageDefinition.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/MessageDefinition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -332,6 +332,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + CodeElement = (Code)value; + return this; + case "profile": + ProfileElement = (Hl7.Fhir.Model.Canonical)value; + return this; + case "min": + MinElement = (Hl7.Fhir.Model.UnsignedInt)value; + return this; + case "max": + MaxElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -507,6 +529,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "message": + MessageElement = (Hl7.Fhir.Model.Canonical)value; + return this; + case "situation": + SituationElement = (Hl7.Fhir.Model.Markdown)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1417,6 +1455,88 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "replaces": + ReplacesElement = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "base": + BaseElement = (Hl7.Fhir.Model.Canonical)value; + return this; + case "parent": + ParentElement = (List)value; + return this; + case "event": + Event = (Hl7.Fhir.Model.DataType)value; + return this; + case "category": + CategoryElement = (Code)value; + return this; + case "focus": + Focus = (List)value; + return this; + case "responseRequired": + ResponseRequiredElement = (Code)value; + return this; + case "allowedResponse": + AllowedResponse = (List)value; + return this; + case "graph": + GraphElement = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/MessageHeader.cs b/src/Hl7.Fhir.R4B/Model/Generated/MessageHeader.cs index d1af923f75..48ef36634b 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/MessageHeader.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/MessageHeader.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -297,6 +297,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "target": + Target = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "endpoint": + EndpointElement = (Hl7.Fhir.Model.FhirUrl)value; + return this; + case "receiver": + Receiver = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -570,6 +592,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "software": + SoftwareElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (Hl7.Fhir.Model.ContactPoint)value; + return this; + case "endpoint": + EndpointElement = (Hl7.Fhir.Model.FhirUrl)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -771,6 +818,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + IdentifierElement = (Hl7.Fhir.Model.Id)value; + return this; + case "code": + CodeElement = (Code)value; + return this; + case "details": + Details = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1115,6 +1181,49 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "event": + Event = (Hl7.Fhir.Model.DataType)value; + return this; + case "destination": + Destination = (List)value; + return this; + case "sender": + Sender = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "enterer": + Enterer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "author": + Author = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "source": + Source = (Hl7.Fhir.Model.MessageHeader.MessageSourceComponent)value; + return this; + case "responsible": + Responsible = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "reason": + Reason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "response": + Response = (Hl7.Fhir.Model.MessageHeader.ResponseComponent)value; + return this; + case "focus": + Focus = (List)value; + return this; + case "definition": + DefinitionElement = (Hl7.Fhir.Model.Canonical)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/MolecularSequence.cs b/src/Hl7.Fhir.R4B/Model/Generated/MolecularSequence.cs index 3e9784c862..19908293a1 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/MolecularSequence.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/MolecularSequence.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -588,6 +588,43 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "chromosome": + Chromosome = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "genomeBuild": + GenomeBuildElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "orientation": + OrientationElement = (Code)value; + return this; + case "referenceSeqId": + ReferenceSeqId = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "referenceSeqPointer": + ReferenceSeqPointer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "referenceSeqString": + ReferenceSeqStringElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "strand": + StrandElement = (Code)value; + return this; + case "windowStart": + WindowStartElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "windowEnd": + WindowEndElement = (Hl7.Fhir.Model.Integer)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -906,6 +943,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "start": + StartElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "end": + EndElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "observedAllele": + ObservedAlleleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "referenceAllele": + ReferenceAlleleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "cigar": + CigarElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "variantPointer": + VariantPointer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1521,6 +1586,61 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "standardSequence": + StandardSequence = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "start": + StartElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "end": + EndElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "score": + Score = (Hl7.Fhir.Model.Quantity)value; + return this; + case "method": + Method = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "truthTP": + TruthTPElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "queryTP": + QueryTPElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "truthFN": + TruthFNElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "queryFP": + QueryFPElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "gtFP": + GtFPElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "precision": + PrecisionElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "recall": + RecallElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "fScore": + FScoreElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "roc": + Roc = (Hl7.Fhir.Model.MolecularSequence.RocComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1907,6 +2027,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "score": + ScoreElement = (List)value; + return this; + case "numTP": + NumTPElement = (List)value; + return this; + case "numFP": + NumFPElement = (List)value; + return this; + case "numFN": + NumFNElement = (List)value; + return this; + case "precision": + PrecisionElement = (List)value; + return this; + case "sensitivity": + SensitivityElement = (List)value; + return this; + case "fMeasure": + FMeasureElement = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2242,6 +2393,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "datasetId": + DatasetIdElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "variantsetId": + VariantsetIdElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "readsetId": + ReadsetIdElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2481,6 +2660,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "variantType": + VariantType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "exact": + ExactElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "length": + LengthElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "outer": + Outer = (Hl7.Fhir.Model.MolecularSequence.OuterComponent)value; + return this; + case "inner": + Inner = (Hl7.Fhir.Model.MolecularSequence.InnerComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2652,6 +2856,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "start": + StartElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "end": + EndElement = (Hl7.Fhir.Model.Integer)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2820,6 +3040,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "start": + StartElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "end": + EndElement = (Hl7.Fhir.Model.Integer)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3325,6 +3561,64 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "type": + TypeElement = (Code)value; + return this; + case "coordinateSystem": + CoordinateSystemElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "specimen": + Specimen = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "device": + Device = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "performer": + Performer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "referenceSeq": + ReferenceSeq = (Hl7.Fhir.Model.MolecularSequence.ReferenceSeqComponent)value; + return this; + case "variant": + Variant = (List)value; + return this; + case "observedSeq": + ObservedSeqElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "quality": + Quality = (List)value; + return this; + case "readCoverage": + ReadCoverageElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "repository": + Repository = (List)value; + return this; + case "pointer": + Pointer = (List)value; + return this; + case "structureVariant": + StructureVariant = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Money.cs b/src/Hl7.Fhir.R4B/Model/Generated/Money.cs index 9b8cd02483..4becf501b3 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Money.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Money.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -1305,6 +1305,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "value": + ValueElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "currency": + CurrencyElement = (Code)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/NamingSystem.cs b/src/Hl7.Fhir.R4B/Model/Generated/NamingSystem.cs index b253c8dbe0..67f7cb02ee 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/NamingSystem.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/NamingSystem.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -387,6 +387,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "value": + ValueElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "preferred": + PreferredElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "comment": + CommentElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -897,6 +922,55 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "kind": + KindElement = (Code)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "responsible": + ResponsibleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "usage": + UsageElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "uniqueId": + UniqueId = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/NutritionOrder.cs b/src/Hl7.Fhir.R4B/Model/Generated/NutritionOrder.cs index a12261ca7a..75480cf8b8 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/NutritionOrder.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/NutritionOrder.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -295,6 +295,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (List)value; + return this; + case "schedule": + Schedule = (List)value; + return this; + case "nutrient": + Nutrient = (List)value; + return this; + case "texture": + Texture = (List)value; + return this; + case "fluidConsistencyType": + FluidConsistencyType = (List)value; + return this; + case "instruction": + InstructionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -435,6 +463,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "modifier": + Modifier = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "amount": + Amount = (Hl7.Fhir.Model.Quantity)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -572,6 +616,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "modifier": + Modifier = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "foodType": + FoodType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -808,6 +868,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "productName": + ProductNameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "schedule": + Schedule = (List)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "instruction": + InstructionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1151,6 +1236,43 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "baseFormulaType": + BaseFormulaType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "baseFormulaProductName": + BaseFormulaProductNameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "additiveType": + AdditiveType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "additiveProductName": + AdditiveProductNameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "caloricDensity": + CaloricDensity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "routeofAdministration": + RouteofAdministration = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "administration": + Administration = (List)value; + return this; + case "maxVolumeToDeliver": + MaxVolumeToDeliver = (Hl7.Fhir.Model.Quantity)value; + return this; + case "administrationInstruction": + AdministrationInstructionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1317,6 +1439,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "schedule": + Schedule = (Hl7.Fhir.Model.Timing)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "rate": + Rate = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1888,6 +2029,67 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "instantiatesCanonical": + InstantiatesCanonicalElement = (List)value; + return this; + case "instantiatesUri": + InstantiatesUriElement = (List)value; + return this; + case "instantiates": + InstantiatesElement = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "intent": + IntentElement = (Code)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "dateTime": + DateTimeElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "orderer": + Orderer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "allergyIntolerance": + AllergyIntolerance = (List)value; + return this; + case "foodPreferenceModifier": + FoodPreferenceModifier = (List)value; + return this; + case "excludeFoodModifier": + ExcludeFoodModifier = (List)value; + return this; + case "oralDiet": + OralDiet = (Hl7.Fhir.Model.NutritionOrder.OralDietComponent)value; + return this; + case "supplement": + Supplement = (List)value; + return this; + case "enteralFormula": + EnteralFormula = (Hl7.Fhir.Model.NutritionOrder.EnteralFormulaComponent)value; + return this; + case "note": + Note = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/NutritionProduct.cs b/src/Hl7.Fhir.R4B/Model/Generated/NutritionProduct.cs index 05e818e43a..a2272a9f36 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/NutritionProduct.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/NutritionProduct.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -215,6 +215,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "item": + Item = (Hl7.Fhir.Model.CodeableReference)value; + return this; + case "amount": + Amount = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -349,6 +365,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "item": + Item = (Hl7.Fhir.Model.CodeableReference)value; + return this; + case "amount": + Amount = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -486,6 +518,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -739,6 +787,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "lotNumber": + LotNumberElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "expiry": + ExpiryElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "useBy": + UseByElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1061,6 +1134,46 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "status": + StatusElement = (Code)value; + return this; + case "category": + Category = (List)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "manufacturer": + Manufacturer = (List)value; + return this; + case "nutrient": + Nutrient = (List)value; + return this; + case "ingredient": + Ingredient = (List)value; + return this; + case "knownAllergen": + KnownAllergen = (List)value; + return this; + case "productCharacteristic": + ProductCharacteristic = (List)value; + return this; + case "instance": + Instance = (Hl7.Fhir.Model.NutritionProduct.InstanceComponent)value; + return this; + case "note": + Note = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Observation.cs b/src/Hl7.Fhir.R4B/Model/Generated/Observation.cs index 0591c2d48c..b404275fff 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Observation.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Observation.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -292,6 +292,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "low": + Low = (Hl7.Fhir.Model.Quantity)value; + return this; + case "high": + High = (Hl7.Fhir.Model.Quantity)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "appliesTo": + AppliesTo = (List)value; + return this; + case "age": + Age = (Hl7.Fhir.Model.Range)value; + return this; + case "text": + TextElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -503,6 +531,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + case "dataAbsentReason": + DataAbsentReason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "interpretation": + Interpretation = (List)value; + return this; + case "referenceRange": + ReferenceRange = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1170,6 +1223,88 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "partOf": + PartOf = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "category": + Category = (List)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "focus": + Focus = (List)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "effective": + Effective = (Hl7.Fhir.Model.DataType)value; + return this; + case "issued": + IssuedElement = (Hl7.Fhir.Model.Instant)value; + return this; + case "performer": + Performer = (List)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + case "dataAbsentReason": + DataAbsentReason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "interpretation": + Interpretation = (List)value; + return this; + case "note": + Note = (List)value; + return this; + case "bodySite": + BodySite = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "method": + Method = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "specimen": + Specimen = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "device": + Device = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "referenceRange": + ReferenceRange = (List)value; + return this; + case "hasMember": + HasMember = (List)value; + return this; + case "derivedFrom": + DerivedFrom = (List)value; + return this; + case "component": + Component = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/ObservationDefinition.cs b/src/Hl7.Fhir.R4B/Model/Generated/ObservationDefinition.cs index 51f5572b03..22f5b773ec 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/ObservationDefinition.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/ObservationDefinition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -370,6 +370,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "customaryUnit": + CustomaryUnit = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "unit": + Unit = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "conversionFactor": + ConversionFactorElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "decimalPrecision": + DecimalPrecisionElement = (Hl7.Fhir.Model.Integer)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -694,6 +716,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "category": + CategoryElement = (Code)value; + return this; + case "range": + Range = (Hl7.Fhir.Model.Range)value; + return this; + case "context": + Context = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "appliesTo": + AppliesTo = (List)value; + return this; + case "gender": + GenderElement = (Code)value; + return this; + case "age": + Age = (Hl7.Fhir.Model.Range)value; + return this; + case "gestationalAge": + GestationalAge = (Hl7.Fhir.Model.Range)value; + return this; + case "condition": + ConditionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1123,6 +1179,55 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "category": + Category = (List)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "permittedDataType": + PermittedDataTypeElement = (List>)value; + return this; + case "multipleResultsAllowed": + MultipleResultsAllowedElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "method": + Method = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "preferredReportName": + PreferredReportNameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "quantitativeDetails": + QuantitativeDetails = (Hl7.Fhir.Model.ObservationDefinition.QuantitativeDetailsComponent)value; + return this; + case "qualifiedInterval": + QualifiedInterval = (List)value; + return this; + case "validCodedValueSet": + ValidCodedValueSet = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "normalCodedValueSet": + NormalCodedValueSet = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "abnormalCodedValueSet": + AbnormalCodedValueSet = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "criticalCodedValueSet": + CriticalCodedValueSet = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/OperationDefinition.cs b/src/Hl7.Fhir.R4B/Model/Generated/OperationDefinition.cs index c3f65595e3..63a636406b 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/OperationDefinition.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/OperationDefinition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -554,6 +554,49 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.Code)value; + return this; + case "use": + UseElement = (Code)value; + return this; + case "min": + MinElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "max": + MaxElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "documentation": + DocumentationElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "type": + TypeElement = (Code)value; + return this; + case "targetProfile": + TargetProfileElement = (List)value; + return this; + case "searchType": + SearchTypeElement = (Code)value; + return this; + case "binding": + Binding = (Hl7.Fhir.Model.OperationDefinition.BindingComponent)value; + return this; + case "referencedFrom": + ReferencedFrom = (List)value; + return this; + case "part": + Part = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -738,6 +781,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "strength": + StrengthElement = (Code)value; + return this; + case "valueSet": + ValueSetElement = (Hl7.Fhir.Model.Canonical)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -911,6 +970,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "source": + SourceElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "sourceId": + SourceIdElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1084,6 +1159,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "parameterName": + ParameterNameElement = (List)value; + return this; + case "comment": + CommentElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2104,6 +2195,94 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "kind": + KindElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "affectsState": + AffectsStateElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "code": + CodeElement = (Hl7.Fhir.Model.Code)value; + return this; + case "comment": + CommentElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "base": + BaseElement = (Hl7.Fhir.Model.Canonical)value; + return this; + case "resource": + ResourceElement = (List>)value; + return this; + case "system": + SystemElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "type": + TypeElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "instance": + InstanceElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "inputProfile": + InputProfileElement = (Hl7.Fhir.Model.Canonical)value; + return this; + case "outputProfile": + OutputProfileElement = (Hl7.Fhir.Model.Canonical)value; + return this; + case "parameter": + Parameter = (List)value; + return this; + case "overload": + Overload = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Organization.cs b/src/Hl7.Fhir.R4B/Model/Generated/Organization.cs index d86d7ae356..743dcf4d08 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Organization.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Organization.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -229,6 +229,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "purpose": + Purpose = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "name": + Name = (Hl7.Fhir.Model.HumanName)value; + return this; + case "telecom": + Telecom = (List)value; + return this; + case "address": + Address = (Hl7.Fhir.Model.Address)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -585,6 +607,46 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "active": + ActiveElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "type": + Type = (List)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "alias": + AliasElement = (List)value; + return this; + case "telecom": + Telecom = (List)value; + return this; + case "address": + Address = (List)value; + return this; + case "partOf": + PartOf = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "endpoint": + Endpoint = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/OrganizationAffiliation.cs b/src/Hl7.Fhir.R4B/Model/Generated/OrganizationAffiliation.cs index 3daf772e9e..4e34fa0b4e 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/OrganizationAffiliation.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/OrganizationAffiliation.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -417,6 +417,52 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "active": + ActiveElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "organization": + Organization = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "participatingOrganization": + ParticipatingOrganization = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "network": + Network = (List)value; + return this; + case "code": + Code = (List)value; + return this; + case "specialty": + Specialty = (List)value; + return this; + case "location": + Location = (List)value; + return this; + case "healthcareService": + HealthcareService = (List)value; + return this; + case "telecom": + Telecom = (List)value; + return this; + case "endpoint": + Endpoint = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/PackagedProductDefinition.cs b/src/Hl7.Fhir.R4B/Model/Generated/PackagedProductDefinition.cs index 489d008bf0..f9dc515281 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/PackagedProductDefinition.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/PackagedProductDefinition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -181,6 +181,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "jurisdiction": + Jurisdiction = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -515,6 +531,46 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "quantity": + QuantityElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "material": + Material = (List)value; + return this; + case "alternateMaterial": + AlternateMaterial = (List)value; + return this; + case "shelfLifeStorage": + ShelfLifeStorage = (List)value; + return this; + case "manufacturer": + Manufacturer = (List)value; + return this; + case "property": + Property = (List)value; + return this; + case "containedItem": + ContainedItem = (List)value; + return this; + case "package": + Package = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -679,6 +735,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.DataType)value; + return this; + case "specialPrecautionsForStorage": + SpecialPrecautionsForStorage = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -816,6 +891,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -949,6 +1040,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "item": + Item = (Hl7.Fhir.Model.CodeableReference)value; + return this; + case "amount": + Amount = (Hl7.Fhir.Model.Quantity)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1407,6 +1514,58 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "packageFor": + PackageFor = (List)value; + return this; + case "status": + Status = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "statusDate": + StatusDateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "containedItemQuantity": + ContainedItemQuantity = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "legalStatusOfSupply": + LegalStatusOfSupply = (List)value; + return this; + case "marketingStatus": + MarketingStatus = (List)value; + return this; + case "characteristic": + Characteristic = (List)value; + return this; + case "copackagedIndicator": + CopackagedIndicatorElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "manufacturer": + Manufacturer = (List)value; + return this; + case "package": + Package = (Hl7.Fhir.Model.PackagedProductDefinition.PackageComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/ParameterDefinition.cs b/src/Hl7.Fhir.R4B/Model/Generated/ParameterDefinition.cs index 0fd86270df..80a7222278 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/ParameterDefinition.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/ParameterDefinition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -405,6 +405,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.Code)value; + return this; + case "use": + UseElement = (Code)value; + return this; + case "min": + MinElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "max": + MaxElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "documentation": + DocumentationElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "type": + TypeElement = (Code)value; + return this; + case "profile": + ProfileElement = (Hl7.Fhir.Model.Canonical)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Patient.cs b/src/Hl7.Fhir.R4B/Model/Generated/Patient.cs index 2333e7a709..9e1808ff29 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Patient.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Patient.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -349,6 +349,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "relationship": + Relationship = (List)value; + return this; + case "name": + Name = (Hl7.Fhir.Model.HumanName)value; + return this; + case "telecom": + Telecom = (List)value; + return this; + case "address": + Address = (Hl7.Fhir.Model.Address)value; + return this; + case "gender": + GenderElement = (Code)value; + return this; + case "organization": + Organization = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -509,6 +540,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "language": + Language = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "preferred": + PreferredElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -669,6 +716,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "other": + Other = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "type": + TypeElement = (Code)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1157,6 +1220,64 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "active": + ActiveElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "name": + Name = (List)value; + return this; + case "telecom": + Telecom = (List)value; + return this; + case "gender": + GenderElement = (Code)value; + return this; + case "birthDate": + BirthDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "deceased": + Deceased = (Hl7.Fhir.Model.DataType)value; + return this; + case "address": + Address = (List)value; + return this; + case "maritalStatus": + MaritalStatus = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "multipleBirth": + MultipleBirth = (Hl7.Fhir.Model.DataType)value; + return this; + case "photo": + Photo = (List)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "communication": + Communication = (List)value; + return this; + case "generalPractitioner": + GeneralPractitioner = (List)value; + return this; + case "managingOrganization": + ManagingOrganization = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "link": + Link = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/PaymentNotice.cs b/src/Hl7.Fhir.R4B/Model/Generated/PaymentNotice.cs index 0736966bfd..2e4d8829b4 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/PaymentNotice.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/PaymentNotice.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -455,6 +455,52 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "request": + Request = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "response": + Response = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "created": + CreatedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "provider": + Provider = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "payment": + Payment = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "paymentDate": + PaymentDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "payee": + Payee = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "recipient": + Recipient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "amount": + Amount = (Hl7.Fhir.Model.Money)value; + return this; + case "paymentStatus": + PaymentStatus = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/PaymentReconciliation.cs b/src/Hl7.Fhir.R4B/Model/Generated/PaymentReconciliation.cs index 5c8e01894d..c211a82df6 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/PaymentReconciliation.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/PaymentReconciliation.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -383,6 +383,46 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "predecessor": + Predecessor = (Hl7.Fhir.Model.Identifier)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "request": + Request = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "submitter": + Submitter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "response": + Response = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "responsible": + Responsible = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "payee": + Payee = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "amount": + Amount = (Hl7.Fhir.Model.Money)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -564,6 +604,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "text": + TextElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1065,6 +1121,61 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "created": + CreatedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "paymentIssuer": + PaymentIssuer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "request": + Request = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "requestor": + Requestor = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "outcome": + OutcomeElement = (Code)value; + return this; + case "disposition": + DispositionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "paymentDate": + PaymentDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "paymentAmount": + PaymentAmount = (Hl7.Fhir.Model.Money)value; + return this; + case "paymentIdentifier": + PaymentIdentifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "detail": + Detail = (List)value; + return this; + case "formCode": + FormCode = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "processNote": + ProcessNote = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Person.cs b/src/Hl7.Fhir.R4B/Model/Generated/Person.cs index c8678f1232..4a1376b455 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Person.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Person.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -240,6 +240,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "target": + Target = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "assurance": + AssuranceElement = (Code)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -591,6 +607,46 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "name": + Name = (List)value; + return this; + case "telecom": + Telecom = (List)value; + return this; + case "gender": + GenderElement = (Code)value; + return this; + case "birthDate": + BirthDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "address": + Address = (List)value; + return this; + case "photo": + Photo = (Hl7.Fhir.Model.Attachment)value; + return this; + case "managingOrganization": + ManagingOrganization = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "active": + ActiveElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "link": + Link = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/PlanDefinition.cs b/src/Hl7.Fhir.R4B/Model/Generated/PlanDefinition.cs index 205e1e8b65..4731bad4aa 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/PlanDefinition.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/PlanDefinition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -299,6 +299,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "description": + Description = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "priority": + Priority = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "start": + Start = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "addresses": + Addresses = (List)value; + return this; + case "documentation": + Documentation = (List)value; + return this; + case "target": + Target = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -463,6 +494,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "measure": + Measure = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "detail": + Detail = (Hl7.Fhir.Model.DataType)value; + return this; + case "due": + Due = (Hl7.Fhir.Model.Duration)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1376,6 +1426,97 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "prefix": + PrefixElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "textEquivalent": + TextEquivalentElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "priority": + PriorityElement = (Code)value; + return this; + case "code": + Code = (List)value; + return this; + case "reason": + Reason = (List)value; + return this; + case "documentation": + Documentation = (List)value; + return this; + case "goalId": + GoalIdElement = (List)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.DataType)value; + return this; + case "trigger": + Trigger = (List)value; + return this; + case "condition": + Condition = (List)value; + return this; + case "input": + Input = (List)value; + return this; + case "output": + Output = (List)value; + return this; + case "relatedAction": + RelatedAction = (List)value; + return this; + case "timing": + Timing = (Hl7.Fhir.Model.DataType)value; + return this; + case "participant": + Participant = (List)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "groupingBehavior": + GroupingBehaviorElement = (Code)value; + return this; + case "selectionBehavior": + SelectionBehaviorElement = (Code)value; + return this; + case "requiredBehavior": + RequiredBehaviorElement = (Code)value; + return this; + case "precheckBehavior": + PrecheckBehaviorElement = (Code)value; + return this; + case "cardinalityBehavior": + CardinalityBehaviorElement = (Code)value; + return this; + case "definition": + Definition = (Hl7.Fhir.Model.DataType)value; + return this; + case "transform": + TransformElement = (Hl7.Fhir.Model.Canonical)value; + return this; + case "dynamicValue": + DynamicValue = (List)value; + return this; + case "action": + Action = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1558,6 +1699,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "kind": + KindElement = (Code)value; + return this; + case "expression": + Expression = (Hl7.Fhir.Model.Expression)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1757,6 +1914,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "actionId": + ActionIdElement = (Hl7.Fhir.Model.Id)value; + return this; + case "relationship": + RelationshipElement = (Code)value; + return this; + case "offset": + Offset = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1915,6 +2091,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "role": + Role = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2069,6 +2261,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "path": + PathElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "expression": + Expression = (Hl7.Fhir.Model.Expression)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3109,6 +3317,109 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "subtitle": + SubtitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.DataType)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "usage": + UsageElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "approvalDate": + ApprovalDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "lastReviewDate": + LastReviewDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "effectivePeriod": + EffectivePeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "topic": + Topic = (List)value; + return this; + case "author": + Author = (List)value; + return this; + case "editor": + Editor = (List)value; + return this; + case "reviewer": + Reviewer = (List)value; + return this; + case "endorser": + Endorser = (List)value; + return this; + case "relatedArtifact": + RelatedArtifact = (List)value; + return this; + case "library": + LibraryElement = (List)value; + return this; + case "goal": + Goal = (List)value; + return this; + case "action": + Action = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Population.cs b/src/Hl7.Fhir.R4B/Model/Generated/Population.cs index 71b8b0fa32..b5e81dfc5e 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Population.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Population.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -212,6 +212,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "age": + Age = (Hl7.Fhir.Model.DataType)value; + return this; + case "gender": + Gender = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "race": + Race = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "physiologicalCondition": + PhysiologicalCondition = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Practitioner.cs b/src/Hl7.Fhir.R4B/Model/Generated/Practitioner.cs index 3aed92def9..c3076baa23 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Practitioner.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Practitioner.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -232,6 +232,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "issuer": + Issuer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -586,6 +608,46 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "active": + ActiveElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "name": + Name = (List)value; + return this; + case "telecom": + Telecom = (List)value; + return this; + case "address": + Address = (List)value; + return this; + case "gender": + GenderElement = (Code)value; + return this; + case "birthDate": + BirthDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "photo": + Photo = (List)value; + return this; + case "qualification": + Qualification = (List)value; + return this; + case "communication": + Communication = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/PractitionerRole.cs b/src/Hl7.Fhir.R4B/Model/Generated/PractitionerRole.cs index a52a8af8a5..aeccb3643b 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/PractitionerRole.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/PractitionerRole.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -303,6 +303,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "daysOfWeek": + DaysOfWeekElement = (List>)value; + return this; + case "allDay": + AllDayElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "availableStartTime": + AvailableStartTimeElement = (Hl7.Fhir.Model.Time)value; + return this; + case "availableEndTime": + AvailableEndTimeElement = (Hl7.Fhir.Model.Time)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -459,6 +481,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "during": + During = (Hl7.Fhir.Model.Period)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -888,6 +926,58 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "active": + ActiveElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "practitioner": + Practitioner = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "organization": + Organization = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "code": + Code = (List)value; + return this; + case "specialty": + Specialty = (List)value; + return this; + case "location": + Location = (List)value; + return this; + case "healthcareService": + HealthcareService = (List)value; + return this; + case "telecom": + Telecom = (List)value; + return this; + case "availableTime": + AvailableTime = (List)value; + return this; + case "notAvailable": + NotAvailable = (List)value; + return this; + case "availabilityExceptions": + AvailabilityExceptionsElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "endpoint": + Endpoint = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Procedure.cs b/src/Hl7.Fhir.R4B/Model/Generated/Procedure.cs index 4cf72f76b8..7a6741434e 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Procedure.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Procedure.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -212,6 +212,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "function": + Function = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "actor": + Actor = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "onBehalfOf": + OnBehalfOf = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -352,6 +371,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "action": + Action = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "manipulated": + Manipulated = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1126,6 +1161,100 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "instantiatesCanonical": + InstantiatesCanonicalElement = (List)value; + return this; + case "instantiatesUri": + InstantiatesUriElement = (List)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "partOf": + PartOf = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "statusReason": + StatusReason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "performed": + Performed = (Hl7.Fhir.Model.DataType)value; + return this; + case "recorder": + Recorder = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "asserter": + Asserter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "performer": + Performer = (List)value; + return this; + case "location": + Location = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "reasonReference": + ReasonReference = (List)value; + return this; + case "bodySite": + BodySite = (List)value; + return this; + case "outcome": + Outcome = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "report": + Report = (List)value; + return this; + case "complication": + Complication = (List)value; + return this; + case "complicationDetail": + ComplicationDetail = (List)value; + return this; + case "followUp": + FollowUp = (List)value; + return this; + case "note": + Note = (List)value; + return this; + case "focalDevice": + FocalDevice = (List)value; + return this; + case "usedReference": + UsedReference = (List)value; + return this; + case "usedCode": + UsedCode = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/ProdCharacteristic.cs b/src/Hl7.Fhir.R4B/Model/Generated/ProdCharacteristic.cs index d88aa06c0c..19e43ba531 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/ProdCharacteristic.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/ProdCharacteristic.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -411,6 +411,49 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "height": + Height = (Hl7.Fhir.Model.Quantity)value; + return this; + case "width": + Width = (Hl7.Fhir.Model.Quantity)value; + return this; + case "depth": + Depth = (Hl7.Fhir.Model.Quantity)value; + return this; + case "weight": + Weight = (Hl7.Fhir.Model.Quantity)value; + return this; + case "nominalVolume": + NominalVolume = (Hl7.Fhir.Model.Quantity)value; + return this; + case "externalDiameter": + ExternalDiameter = (Hl7.Fhir.Model.Quantity)value; + return this; + case "shape": + ShapeElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "color": + ColorElement = (List)value; + return this; + case "imprint": + ImprintElement = (List)value; + return this; + case "image": + Image = (List)value; + return this; + case "scoring": + Scoring = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/ProductShelfLife.cs b/src/Hl7.Fhir.R4B/Model/Generated/ProductShelfLife.cs index 4371db6e7e..c3f135e5a4 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/ProductShelfLife.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/ProductShelfLife.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -210,6 +210,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Quantity)value; + return this; + case "specialPrecautionsForStorage": + SpecialPrecautionsForStorage = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Provenance.cs b/src/Hl7.Fhir.R4B/Model/Generated/Provenance.cs index 5b654a3a6b..76a6508317 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Provenance.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Provenance.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -277,6 +277,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "role": + Role = (List)value; + return this; + case "who": + Who = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "onBehalfOf": + OnBehalfOf = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -457,6 +479,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "role": + RoleElement = (Code)value; + return this; + case "what": + What = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "agent": + Agent = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -795,6 +836,46 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "target": + Target = (List)value; + return this; + case "occurred": + Occurred = (Hl7.Fhir.Model.DataType)value; + return this; + case "recorded": + RecordedElement = (Hl7.Fhir.Model.Instant)value; + return this; + case "policy": + PolicyElement = (List)value; + return this; + case "location": + Location = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "reason": + Reason = (List)value; + return this; + case "activity": + Activity = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "agent": + Agent = (List)value; + return this; + case "entity": + Entity = (List)value; + return this; + case "signature": + Signature = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Questionnaire.cs b/src/Hl7.Fhir.R4B/Model/Generated/Questionnaire.cs index b2cad4d3a5..01ec18ede6 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Questionnaire.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Questionnaire.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -876,6 +876,64 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "linkId": + LinkIdElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "definition": + DefinitionElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "code": + Code = (List)value; + return this; + case "prefix": + PrefixElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "text": + TextElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "type": + TypeElement = (Code)value; + return this; + case "enableWhen": + EnableWhen = (List)value; + return this; + case "enableBehavior": + EnableBehaviorElement = (Code)value; + return this; + case "required": + RequiredElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "repeats": + RepeatsElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "readOnly": + ReadOnlyElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "maxLength": + MaxLengthElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "answerValueSet": + AnswerValueSetElement = (Hl7.Fhir.Model.Canonical)value; + return this; + case "answerOption": + AnswerOption = (List)value; + return this; + case "initial": + Initial = (List)value; + return this; + case "item": + Item = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1092,6 +1150,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "question": + QuestionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "operator": + OperatorElement = (Code)value; + return this; + case "answer": + Answer = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1252,6 +1329,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + case "initialSelected": + InitialSelectedElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1372,6 +1465,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2196,6 +2302,82 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "derivedFrom": + DerivedFromElement = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "subjectType": + SubjectTypeElement = (List>)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "approvalDate": + ApprovalDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "lastReviewDate": + LastReviewDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "effectivePeriod": + EffectivePeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "code": + Code = (List)value; + return this; + case "item": + Item = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/QuestionnaireResponse.cs b/src/Hl7.Fhir.R4B/Model/Generated/QuestionnaireResponse.cs index 06aa31b4fb..58205e09fc 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/QuestionnaireResponse.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/QuestionnaireResponse.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -347,6 +347,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "linkId": + LinkIdElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "definition": + DefinitionElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "text": + TextElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "answer": + Answer = (List)value; + return this; + case "item": + Item = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -491,6 +516,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + case "item": + Item = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -872,6 +913,49 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "partOf": + PartOf = (List)value; + return this; + case "questionnaire": + QuestionnaireElement = (Hl7.Fhir.Model.Canonical)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "authored": + AuthoredElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "author": + Author = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "source": + Source = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "item": + Item = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Ratio.cs b/src/Hl7.Fhir.R4B/Model/Generated/Ratio.cs index 80b903977f..fe745e91e4 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Ratio.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Ratio.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -169,6 +169,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "numerator": + Numerator = (Hl7.Fhir.Model.Quantity)value; + return this; + case "denominator": + Denominator = (Hl7.Fhir.Model.Quantity)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/RatioRange.cs b/src/Hl7.Fhir.R4B/Model/Generated/RatioRange.cs index 4da683ea61..e5ae38df1c 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/RatioRange.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/RatioRange.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -190,6 +190,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "lowNumerator": + LowNumerator = (Hl7.Fhir.Model.Quantity)value; + return this; + case "highNumerator": + HighNumerator = (Hl7.Fhir.Model.Quantity)value; + return this; + case "denominator": + Denominator = (Hl7.Fhir.Model.Quantity)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/RegulatedAuthorization.cs b/src/Hl7.Fhir.R4B/Model/Generated/RegulatedAuthorization.cs index 4f0410b607..6a7cad8f8e 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/RegulatedAuthorization.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/RegulatedAuthorization.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -253,6 +253,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "status": + Status = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "date": + Date = (Hl7.Fhir.Model.DataType)value; + return this; + case "application": + Application = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -679,6 +704,58 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "subject": + Subject = (List)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "region": + Region = (List)value; + return this; + case "status": + Status = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "statusDate": + StatusDateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "validityPeriod": + ValidityPeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "indication": + Indication = (Hl7.Fhir.Model.CodeableReference)value; + return this; + case "intendedUse": + IntendedUse = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "basis": + Basis = (List)value; + return this; + case "holder": + Holder = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "regulator": + Regulator = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "case": + Case = (Hl7.Fhir.Model.RegulatedAuthorization.CaseComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/RelatedPerson.cs b/src/Hl7.Fhir.R4B/Model/Generated/RelatedPerson.cs index 4f3f152a34..87cc970ce3 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/RelatedPerson.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/RelatedPerson.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -205,6 +205,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "language": + Language = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "preferred": + PreferredElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -602,6 +618,52 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "active": + ActiveElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "relationship": + Relationship = (List)value; + return this; + case "name": + Name = (List)value; + return this; + case "telecom": + Telecom = (List)value; + return this; + case "gender": + GenderElement = (Code)value; + return this; + case "birthDate": + BirthDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "address": + Address = (List)value; + return this; + case "photo": + Photo = (List)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "communication": + Communication = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/RequestGroup.cs b/src/Hl7.Fhir.R4B/Model/Generated/RequestGroup.cs index b79493f34a..31a1c95eb8 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/RequestGroup.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/RequestGroup.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -747,6 +747,73 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "prefix": + PrefixElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "textEquivalent": + TextEquivalentElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "priority": + PriorityElement = (Code)value; + return this; + case "code": + Code = (List)value; + return this; + case "documentation": + Documentation = (List)value; + return this; + case "condition": + Condition = (List)value; + return this; + case "relatedAction": + RelatedAction = (List)value; + return this; + case "timing": + Timing = (Hl7.Fhir.Model.DataType)value; + return this; + case "participant": + Participant = (List)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "groupingBehavior": + GroupingBehaviorElement = (Code)value; + return this; + case "selectionBehavior": + SelectionBehaviorElement = (Code)value; + return this; + case "requiredBehavior": + RequiredBehaviorElement = (Code)value; + return this; + case "precheckBehavior": + PrecheckBehaviorElement = (Code)value; + return this; + case "cardinalityBehavior": + CardinalityBehaviorElement = (Code)value; + return this; + case "resource": + Resource = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "action": + Action = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -921,6 +988,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "kind": + KindElement = (Code)value; + return this; + case "expression": + Expression = (Hl7.Fhir.Model.Expression)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1119,6 +1202,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "actionId": + ActionIdElement = (Hl7.Fhir.Model.Id)value; + return this; + case "relationship": + RelationshipElement = (Code)value; + return this; + case "offset": + Offset = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1713,6 +1815,70 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "instantiatesCanonical": + InstantiatesCanonicalElement = (List)value; + return this; + case "instantiatesUri": + InstantiatesUriElement = (List)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "replaces": + Replaces = (List)value; + return this; + case "groupIdentifier": + GroupIdentifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "intent": + IntentElement = (Code)value; + return this; + case "priority": + PriorityElement = (Code)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "authoredOn": + AuthoredOnElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "author": + Author = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "reasonReference": + ReasonReference = (List)value; + return this; + case "note": + Note = (List)value; + return this; + case "action": + Action = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/ResearchDefinition.cs b/src/Hl7.Fhir.R4B/Model/Generated/ResearchDefinition.cs index d96bae2446..b27c881622 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/ResearchDefinition.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/ResearchDefinition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -1196,6 +1196,118 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "shortTitle": + ShortTitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "subtitle": + SubtitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.DataType)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "comment": + CommentElement = (List)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "usage": + UsageElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "approvalDate": + ApprovalDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "lastReviewDate": + LastReviewDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "effectivePeriod": + EffectivePeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "topic": + Topic = (List)value; + return this; + case "author": + Author = (List)value; + return this; + case "editor": + Editor = (List)value; + return this; + case "reviewer": + Reviewer = (List)value; + return this; + case "endorser": + Endorser = (List)value; + return this; + case "relatedArtifact": + RelatedArtifact = (List)value; + return this; + case "library": + LibraryElement = (List)value; + return this; + case "population": + Population = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "exposure": + Exposure = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "exposureAlternative": + ExposureAlternative = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "outcome": + Outcome = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/ResearchElementDefinition.cs b/src/Hl7.Fhir.R4B/Model/Generated/ResearchElementDefinition.cs index 8d39ffd06d..0eb9a34bc2 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/ResearchElementDefinition.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/ResearchElementDefinition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -556,6 +556,52 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "definition": + Definition = (Hl7.Fhir.Model.DataType)value; + return this; + case "usageContext": + UsageContext = (List)value; + return this; + case "exclude": + ExcludeElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "unitOfMeasure": + UnitOfMeasure = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "studyEffectiveDescription": + StudyEffectiveDescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "studyEffective": + StudyEffective = (Hl7.Fhir.Model.DataType)value; + return this; + case "studyEffectiveTimeFromStart": + StudyEffectiveTimeFromStart = (Hl7.Fhir.Model.Duration)value; + return this; + case "studyEffectiveGroupMeasure": + StudyEffectiveGroupMeasureElement = (Code)value; + return this; + case "participantEffectiveDescription": + ParticipantEffectiveDescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "participantEffective": + ParticipantEffective = (Hl7.Fhir.Model.DataType)value; + return this; + case "participantEffectiveTimeFromStart": + ParticipantEffectiveTimeFromStart = (Hl7.Fhir.Model.Duration)value; + return this; + case "participantEffectiveGroupMeasure": + ParticipantEffectiveGroupMeasureElement = (Code)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1724,6 +1770,115 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "shortTitle": + ShortTitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "subtitle": + SubtitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.DataType)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "comment": + CommentElement = (List)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "usage": + UsageElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "approvalDate": + ApprovalDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "lastReviewDate": + LastReviewDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "effectivePeriod": + EffectivePeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "topic": + Topic = (List)value; + return this; + case "author": + Author = (List)value; + return this; + case "editor": + Editor = (List)value; + return this; + case "reviewer": + Reviewer = (List)value; + return this; + case "endorser": + Endorser = (List)value; + return this; + case "relatedArtifact": + RelatedArtifact = (List)value; + return this; + case "library": + LibraryElement = (List)value; + return this; + case "type": + TypeElement = (Code)value; + return this; + case "variableType": + VariableTypeElement = (Code)value; + return this; + case "characteristic": + Characteristic = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/ResearchStudy.cs b/src/Hl7.Fhir.R4B/Model/Generated/ResearchStudy.cs index c1062779ef..2d0dc8d029 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/ResearchStudy.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/ResearchStudy.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -320,6 +320,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -475,6 +494,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1149,6 +1184,88 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "protocol": + Protocol = (List)value; + return this; + case "partOf": + PartOf = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "primaryPurposeType": + PrimaryPurposeType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "phase": + Phase = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "category": + Category = (List)value; + return this; + case "focus": + Focus = (List)value; + return this; + case "condition": + Condition = (List)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "relatedArtifact": + RelatedArtifact = (List)value; + return this; + case "keyword": + Keyword = (List)value; + return this; + case "location": + Location = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "enrollment": + Enrollment = (List)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "sponsor": + Sponsor = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "principalInvestigator": + PrincipalInvestigator = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "site": + Site = (List)value; + return this; + case "reasonStopped": + ReasonStopped = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "note": + Note = (List)value; + return this; + case "arm": + Arm = (List)value; + return this; + case "objective": + Objective = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/ResearchSubject.cs b/src/Hl7.Fhir.R4B/Model/Generated/ResearchSubject.cs index b8b4fe69e3..b41f3495a1 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/ResearchSubject.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/ResearchSubject.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -451,6 +451,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "study": + Study = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "individual": + Individual = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "assignedArm": + AssignedArmElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "actualArm": + ActualArmElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "consent": + Consent = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/RiskAssessment.cs b/src/Hl7.Fhir.R4B/Model/Generated/RiskAssessment.cs index 8ae723f2de..31ac230bae 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/RiskAssessment.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/RiskAssessment.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -312,6 +312,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "outcome": + Outcome = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "probability": + Probability = (Hl7.Fhir.Model.DataType)value; + return this; + case "qualitativeRisk": + QualitativeRisk = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "relativeRisk": + RelativeRiskElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "when": + When = (Hl7.Fhir.Model.DataType)value; + return this; + case "rationale": + RationaleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -816,6 +844,67 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "basedOn": + BasedOn = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "parent": + Parent = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "method": + Method = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "occurrence": + Occurrence = (Hl7.Fhir.Model.DataType)value; + return this; + case "condition": + Condition = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "performer": + Performer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "reasonReference": + ReasonReference = (List)value; + return this; + case "basis": + Basis = (List)value; + return this; + case "prediction": + Prediction = (List)value; + return this; + case "mitigation": + MitigationElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "note": + Note = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/SampledData.cs b/src/Hl7.Fhir.R4B/Model/Generated/SampledData.cs index 61b77e723a..d21ca98595 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/SampledData.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/SampledData.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -385,6 +385,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "origin": + Origin = (Hl7.Fhir.Model.Quantity)value; + return this; + case "period": + PeriodElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "factor": + FactorElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "lowerLimit": + LowerLimitElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "upperLimit": + UpperLimitElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "dimensions": + DimensionsElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "data": + DataElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Schedule.cs b/src/Hl7.Fhir.R4B/Model/Generated/Schedule.cs index a5972c36b3..fa1b7ac8ea 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Schedule.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Schedule.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -339,6 +339,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "active": + ActiveElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "serviceCategory": + ServiceCategory = (List)value; + return this; + case "serviceType": + ServiceType = (List)value; + return this; + case "specialty": + Specialty = (List)value; + return this; + case "actor": + Actor = (List)value; + return this; + case "planningHorizon": + PlanningHorizon = (Hl7.Fhir.Model.Period)value; + return this; + case "comment": + CommentElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/SearchParameter.cs b/src/Hl7.Fhir.R4B/Model/Generated/SearchParameter.cs index 9b3c2a744e..b061f65f9a 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/SearchParameter.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/SearchParameter.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -410,6 +410,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "definition": + DefinitionElement = (Hl7.Fhir.Model.Canonical)value; + return this; + case "expression": + ExpressionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1458,6 +1474,94 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "derivedFrom": + DerivedFromElement = (Hl7.Fhir.Model.Canonical)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "code": + CodeElement = (Hl7.Fhir.Model.Code)value; + return this; + case "base": + BaseElement = (List>)value; + return this; + case "type": + TypeElement = (Code)value; + return this; + case "expression": + ExpressionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "xpath": + XpathElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "xpathUsage": + XpathUsageElement = (Code)value; + return this; + case "target": + TargetElement = (List>)value; + return this; + case "multipleOr": + MultipleOrElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "multipleAnd": + MultipleAndElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "comparator": + ComparatorElement = (List>)value; + return this; + case "modifier": + ModifierElement = (List>)value; + return this; + case "chain": + ChainElement = (List)value; + return this; + case "component": + Component = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/ServiceRequest.cs b/src/Hl7.Fhir.R4B/Model/Generated/ServiceRequest.cs index 2991a2d7de..4618527e66 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/ServiceRequest.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/ServiceRequest.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -1030,6 +1030,115 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "instantiatesCanonical": + InstantiatesCanonicalElement = (List)value; + return this; + case "instantiatesUri": + InstantiatesUriElement = (List)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "replaces": + Replaces = (List)value; + return this; + case "requisition": + Requisition = (Hl7.Fhir.Model.Identifier)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "intent": + IntentElement = (Code)value; + return this; + case "category": + Category = (List)value; + return this; + case "priority": + PriorityElement = (Code)value; + return this; + case "doNotPerform": + DoNotPerformElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "orderDetail": + OrderDetail = (List)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.DataType)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "occurrence": + Occurrence = (Hl7.Fhir.Model.DataType)value; + return this; + case "asNeeded": + AsNeeded = (Hl7.Fhir.Model.DataType)value; + return this; + case "authoredOn": + AuthoredOnElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "requester": + Requester = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "performerType": + PerformerType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "performer": + Performer = (List)value; + return this; + case "locationCode": + LocationCode = (List)value; + return this; + case "locationReference": + LocationReference = (List)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "reasonReference": + ReasonReference = (List)value; + return this; + case "insurance": + Insurance = (List)value; + return this; + case "supportingInfo": + SupportingInfo = (List)value; + return this; + case "specimen": + Specimen = (List)value; + return this; + case "bodySite": + BodySite = (List)value; + return this; + case "note": + Note = (List)value; + return this; + case "patientInstruction": + PatientInstructionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "relevantHistory": + RelevantHistory = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Slot.cs b/src/Hl7.Fhir.R4B/Model/Generated/Slot.cs index ec8f3a6906..87311a61d4 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Slot.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Slot.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -502,6 +502,49 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "serviceCategory": + ServiceCategory = (List)value; + return this; + case "serviceType": + ServiceType = (List)value; + return this; + case "specialty": + Specialty = (List)value; + return this; + case "appointmentType": + AppointmentType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "schedule": + Schedule = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "start": + StartElement = (Hl7.Fhir.Model.Instant)value; + return this; + case "end": + EndElement = (Hl7.Fhir.Model.Instant)value; + return this; + case "overbooked": + OverbookedElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "comment": + CommentElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Specimen.cs b/src/Hl7.Fhir.R4B/Model/Generated/Specimen.cs index 9696198f37..5609b3baa7 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Specimen.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Specimen.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -333,6 +333,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "collector": + Collector = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "collected": + Collected = (Hl7.Fhir.Model.DataType)value; + return this; + case "duration": + Duration = (Hl7.Fhir.Model.Duration)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "method": + Method = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "bodySite": + BodySite = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "fastingStatus": + FastingStatus = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -539,6 +570,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "procedure": + Procedure = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "additive": + Additive = (List)value; + return this; + case "time": + Time = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -784,6 +837,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "capacity": + Capacity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "specimenQuantity": + SpecimenQuantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "additive": + Additive = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1192,6 +1273,55 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "accessionIdentifier": + AccessionIdentifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "receivedTime": + ReceivedTimeElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "parent": + Parent = (List)value; + return this; + case "request": + Request = (List)value; + return this; + case "collection": + Collection = (Hl7.Fhir.Model.Specimen.CollectionComponent)value; + return this; + case "processing": + Processing = (List)value; + return this; + case "container": + Container = (List)value; + return this; + case "condition": + Condition = (List)value; + return this; + case "note": + Note = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/SpecimenDefinition.cs b/src/Hl7.Fhir.R4B/Model/Generated/SpecimenDefinition.cs index d535a870af..50a260aff8 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/SpecimenDefinition.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/SpecimenDefinition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -394,6 +394,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "isDerived": + IsDerivedElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "preference": + PreferenceElement = (Code)value; + return this; + case "container": + Container = (Hl7.Fhir.Model.SpecimenDefinition.ContainerComponent)value; + return this; + case "requirement": + RequirementElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "retentionTime": + RetentionTime = (Hl7.Fhir.Model.Duration)value; + return this; + case "rejectionCriterion": + RejectionCriterion = (List)value; + return this; + case "handling": + Handling = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -700,6 +734,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "material": + Material = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "cap": + Cap = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "capacity": + Capacity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "minimumVolume": + MinimumVolume = (Hl7.Fhir.Model.DataType)value; + return this; + case "additive": + Additive = (List)value; + return this; + case "preparation": + PreparationElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -825,6 +893,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "additive": + Additive = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1020,6 +1101,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "temperatureQualifier": + TemperatureQualifier = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "temperatureRange": + TemperatureRange = (Hl7.Fhir.Model.Range)value; + return this; + case "maxDuration": + MaxDuration = (Hl7.Fhir.Model.Duration)value; + return this; + case "instruction": + InstructionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1250,6 +1353,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "typeCollected": + TypeCollected = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "patientPreparation": + PatientPreparation = (List)value; + return this; + case "timeAspect": + TimeAspectElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "collection": + Collection = (List)value; + return this; + case "typeTested": + TypeTested = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/StructureMap.cs b/src/Hl7.Fhir.R4B/Model/Generated/StructureMap.cs index 6cefe37196..743796fd16 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/StructureMap.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/StructureMap.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -593,6 +593,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.Canonical)value; + return this; + case "mode": + ModeElement = (Code)value; + return this; + case "alias": + AliasElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "documentation": + DocumentationElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -892,6 +914,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.Id)value; + return this; + case "extends": + ExtendsElement = (Hl7.Fhir.Model.Id)value; + return this; + case "typeMode": + TypeModeElement = (Code)value; + return this; + case "documentation": + DocumentationElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "input": + Input = (List)value; + return this; + case "rule": + Rule = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1150,6 +1200,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.Id)value; + return this; + case "type": + TypeElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "mode": + ModeElement = (Code)value; + return this; + case "documentation": + DocumentationElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1409,6 +1481,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.Id)value; + return this; + case "source": + Source = (List)value; + return this; + case "target": + Target = (List)value; + return this; + case "rule": + Rule = (List)value; + return this; + case "dependent": + Dependent = (List)value; + return this; + case "documentation": + DocumentationElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1919,6 +2019,49 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "context": + ContextElement = (Hl7.Fhir.Model.Id)value; + return this; + case "min": + MinElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "max": + MaxElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "type": + TypeElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "defaultValue": + DefaultValue = (Hl7.Fhir.Model.DataType)value; + return this; + case "element": + ElementElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "listMode": + ListModeElement = (Code)value; + return this; + case "variable": + VariableElement = (Hl7.Fhir.Model.Id)value; + return this; + case "condition": + ConditionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "check": + CheckElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "logMessage": + LogMessageElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2320,6 +2463,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "context": + ContextElement = (Hl7.Fhir.Model.Id)value; + return this; + case "contextType": + ContextTypeElement = (Code)value; + return this; + case "element": + ElementElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "variable": + VariableElement = (Hl7.Fhir.Model.Id)value; + return this; + case "listMode": + ListModeElement = (List>)value; + return this; + case "listRuleId": + ListRuleIdElement = (Hl7.Fhir.Model.Id)value; + return this; + case "transform": + TransformElement = (Code)value; + return this; + case "parameter": + Parameter = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2440,6 +2617,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2609,6 +2799,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.Id)value; + return this; + case "variable": + VariableElement = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3294,6 +3500,70 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "structure": + Structure = (List)value; + return this; + case "import": + ImportElement = (List)value; + return this; + case "group": + Group = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Subscription.cs b/src/Hl7.Fhir.R4B/Model/Generated/Subscription.cs index f9a2df5517..60dedb0d4e 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Subscription.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Subscription.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -344,6 +344,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "endpoint": + EndpointElement = (Hl7.Fhir.Model.FhirUrl)value; + return this; + case "payload": + PayloadElement = (Hl7.Fhir.Model.Code)value; + return this; + case "header": + HeaderElement = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -666,6 +688,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "status": + StatusElement = (Code)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "end": + EndElement = (Hl7.Fhir.Model.Instant)value; + return this; + case "reason": + ReasonElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "criteria": + CriteriaElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "error": + ErrorElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "channel": + Channel = (Hl7.Fhir.Model.Subscription.ChannelComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/SubscriptionStatus.cs b/src/Hl7.Fhir.R4B/Model/Generated/SubscriptionStatus.cs index 66453a3254..e68e588d21 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/SubscriptionStatus.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/SubscriptionStatus.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -309,6 +309,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "eventNumber": + EventNumberElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "timestamp": + TimestampElement = (Hl7.Fhir.Model.Instant)value; + return this; + case "focus": + Focus = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "additionalContext": + AdditionalContext = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -617,6 +639,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "status": + StatusElement = (Code)value; + return this; + case "type": + TypeElement = (Code)value; + return this; + case "eventsSinceSubscriptionStart": + EventsSinceSubscriptionStartElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "notificationEvent": + NotificationEvent = (List)value; + return this; + case "subscription": + Subscription = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "topic": + TopicElement = (Hl7.Fhir.Model.Canonical)value; + return this; + case "error": + Error = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/SubscriptionTopic.cs b/src/Hl7.Fhir.R4B/Model/Generated/SubscriptionTopic.cs index 73a9b0031a..84d1e057f9 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/SubscriptionTopic.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/SubscriptionTopic.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -475,6 +475,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "resource": + ResourceElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "supportedInteraction": + SupportedInteractionElement = (List>)value; + return this; + case "queryCriteria": + QueryCriteria = (Hl7.Fhir.Model.SubscriptionTopic.QueryCriteriaComponent)value; + return this; + case "fhirPathCriteria": + FhirPathCriteriaElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -770,6 +795,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "previous": + PreviousElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "resultForCreate": + ResultForCreateElement = (Code)value; + return this; + case "current": + CurrentElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "resultForDelete": + ResultForDeleteElement = (Code)value; + return this; + case "requireBoth": + RequireBothElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -969,6 +1019,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "event": + Event = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "resource": + ResourceElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1263,6 +1332,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "resource": + ResourceElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "filterParameter": + FilterParameterElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "filterDefinition": + FilterDefinitionElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "modifier": + ModifierElement = (List>)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1480,6 +1574,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "resource": + ResourceElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "include": + IncludeElement = (List)value; + return this; + case "revInclude": + RevIncludeElement = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2269,6 +2382,82 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "derivedFrom": + DerivedFromElement = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "approvalDate": + ApprovalDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "lastReviewDate": + LastReviewDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "effectivePeriod": + EffectivePeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "resourceTrigger": + ResourceTrigger = (List)value; + return this; + case "eventTrigger": + EventTrigger = (List)value; + return this; + case "canFilterBy": + CanFilterBy = (List)value; + return this; + case "notificationShape": + NotificationShape = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Substance.cs b/src/Hl7.Fhir.R4B/Model/Generated/Substance.cs index fe1f627c9c..f7c5e28c21 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Substance.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Substance.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -249,6 +249,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "expiry": + ExpiryElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -390,6 +409,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "quantity": + Quantity = (Hl7.Fhir.Model.Ratio)value; + return this; + case "substance": + Substance = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -660,6 +695,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "category": + Category = (List)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "instance": + Instance = (List)value; + return this; + case "ingredient": + Ingredient = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/SubstanceDefinition.cs b/src/Hl7.Fhir.R4B/Model/Generated/SubstanceDefinition.cs index 13040a873b..e4a396cee3 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/SubstanceDefinition.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/SubstanceDefinition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -346,6 +346,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "role": + Role = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "stereochemistry": + Stereochemistry = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "opticalActivity": + OpticalActivity = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "molecularFormula": + MolecularFormulaElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "amount": + Amount = (Hl7.Fhir.Model.DataType)value; + return this; + case "measurementType": + MeasurementType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -488,6 +522,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -647,6 +697,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "method": + Method = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "amount": + Amount = (Hl7.Fhir.Model.Quantity)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -950,6 +1019,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "stereochemistry": + Stereochemistry = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "opticalActivity": + OpticalActivity = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "molecularFormula": + MolecularFormulaElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "molecularFormulaByMoiety": + MolecularFormulaByMoietyElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "molecularWeight": + MolecularWeight = (Hl7.Fhir.Model.SubstanceDefinition.MolecularWeightComponent)value; + return this; + case "technique": + Technique = (List)value; + return this; + case "sourceDocument": + SourceDocument = (List)value; + return this; + case "representation": + Representation = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1152,6 +1255,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "representation": + RepresentationElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "format": + Format = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "document": + Document = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1372,6 +1497,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "status": + Status = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "statusDate": + StatusDateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "note": + Note = (List)value; + return this; + case "source": + Source = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1747,6 +1897,49 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "status": + Status = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "preferred": + PreferredElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "language": + Language = (List)value; + return this; + case "domain": + Domain = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "synonym": + Synonym = (List)value; + return this; + case "translation": + Translation = (List)value; + return this; + case "official": + Official = (List)value; + return this; + case "source": + Source = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1929,6 +2122,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "authority": + Authority = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "status": + Status = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2199,6 +2411,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "substanceDefinition": + SubstanceDefinition = (Hl7.Fhir.Model.DataType)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "isDefining": + IsDefiningElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "amount": + Amount = (Hl7.Fhir.Model.DataType)value; + return this; + case "ratioHighLimitAmount": + RatioHighLimitAmount = (Hl7.Fhir.Model.Ratio)value; + return this; + case "comparator": + Comparator = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "source": + Source = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2408,6 +2651,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "genus": + Genus = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "species": + Species = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "part": + Part = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "countryOfOrigin": + CountryOfOrigin = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2946,6 +3214,73 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + Status = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "classification": + Classification = (List)value; + return this; + case "domain": + Domain = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "grade": + Grade = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "informationSource": + InformationSource = (List)value; + return this; + case "note": + Note = (List)value; + return this; + case "manufacturer": + Manufacturer = (List)value; + return this; + case "supplier": + Supplier = (List)value; + return this; + case "moiety": + Moiety = (List)value; + return this; + case "property": + Property = (List)value; + return this; + case "molecularWeight": + MolecularWeight = (List)value; + return this; + case "structure": + Structure = (Hl7.Fhir.Model.SubstanceDefinition.StructureComponent)value; + return this; + case "code": + Code = (List)value; + return this; + case "name": + Name = (List)value; + return this; + case "relationship": + Relationship = (List)value; + return this; + case "sourceMaterial": + SourceMaterial = (Hl7.Fhir.Model.SubstanceDefinition.SourceMaterialComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/SupplyDelivery.cs b/src/Hl7.Fhir.R4B/Model/Generated/SupplyDelivery.cs index 7b74274154..834bbf411d 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/SupplyDelivery.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/SupplyDelivery.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -245,6 +245,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "item": + Item = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -593,6 +609,49 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "partOf": + PartOf = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "suppliedItem": + SuppliedItem = (Hl7.Fhir.Model.SupplyDelivery.SuppliedItemComponent)value; + return this; + case "occurrence": + Occurrence = (Hl7.Fhir.Model.DataType)value; + return this; + case "supplier": + Supplier = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "destination": + Destination = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "receiver": + Receiver = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/SupplyRequest.cs b/src/Hl7.Fhir.R4B/Model/Generated/SupplyRequest.cs index b494de26f1..82f00fd2af 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/SupplyRequest.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/SupplyRequest.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -240,6 +240,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -716,6 +732,61 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "priority": + PriorityElement = (Code)value; + return this; + case "item": + Item = (Hl7.Fhir.Model.DataType)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "parameter": + Parameter = (List)value; + return this; + case "occurrence": + Occurrence = (Hl7.Fhir.Model.DataType)value; + return this; + case "authoredOn": + AuthoredOnElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "requester": + Requester = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "supplier": + Supplier = (List)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "reasonReference": + ReasonReference = (List)value; + return this; + case "deliverFrom": + DeliverFrom = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "deliverTo": + DeliverTo = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Task.cs b/src/Hl7.Fhir.R4B/Model/Generated/Task.cs index 3ac9b12a3d..e60f380173 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Task.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Task.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -370,6 +370,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "repetitions": + RepetitionsElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "recipient": + Recipient = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -511,6 +530,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -651,6 +686,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1568,6 +1619,109 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "instantiatesCanonical": + InstantiatesCanonicalElement = (Hl7.Fhir.Model.Canonical)value; + return this; + case "instantiatesUri": + InstantiatesUriElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "groupIdentifier": + GroupIdentifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "partOf": + PartOf = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "statusReason": + StatusReason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "businessStatus": + BusinessStatus = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "intent": + IntentElement = (Code)value; + return this; + case "priority": + PriorityElement = (Code)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "focus": + Focus = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "for": + For = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "executionPeriod": + ExecutionPeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "authoredOn": + AuthoredOnElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "lastModified": + LastModifiedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "requester": + Requester = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "performerType": + PerformerType = (List)value; + return this; + case "owner": + Owner = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "location": + Location = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "reasonCode": + ReasonCode = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "reasonReference": + ReasonReference = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "insurance": + Insurance = (List)value; + return this; + case "note": + Note = (List)value; + return this; + case "relevantHistory": + RelevantHistory = (List)value; + return this; + case "restriction": + Restriction = (Hl7.Fhir.Model.Task.RestrictionComponent)value; + return this; + case "input": + Input = (List)value; + return this; + case "output": + Output = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Template-Bindings.cs b/src/Hl7.Fhir.R4B/Model/Generated/Template-Bindings.cs index 51a7a3931c..1f16603262 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Template-Bindings.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Template-Bindings.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using Hl7.Fhir.Utility; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Template-ModelInfo.cs b/src/Hl7.Fhir.R4B/Model/Generated/Template-ModelInfo.cs index f78798c8ed..cf6588af8d 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Template-ModelInfo.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Template-ModelInfo.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/TerminologyCapabilities.cs b/src/Hl7.Fhir.R4B/Model/Generated/TerminologyCapabilities.cs index 2f081e2cad..35de459836 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/TerminologyCapabilities.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/TerminologyCapabilities.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -244,6 +244,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -416,6 +432,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUrl)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -610,6 +642,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "uri": + UriElement = (Hl7.Fhir.Model.Canonical)value; + return this; + case "version": + Version = (List)value; + return this; + case "subsumption": + SubsumptionElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -924,6 +975,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + CodeElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "isDefault": + IsDefaultElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "compositional": + CompositionalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "language": + LanguageElement = (List)value; + return this; + case "filter": + Filter = (List)value; + return this; + case "property": + PropertyElement = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1098,6 +1177,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + CodeElement = (Hl7.Fhir.Model.Code)value; + return this; + case "op": + OpElement = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1366,6 +1461,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "hierarchical": + HierarchicalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "paging": + PagingElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "incomplete": + IncompleteElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "parameter": + Parameter = (List)value; + return this; + case "textFilter": + TextFilterElement = (Hl7.Fhir.Model.Markdown)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1538,6 +1658,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.Code)value; + return this; + case "documentation": + DocumentationElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1668,6 +1804,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "translations": + TranslationsElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1797,6 +1946,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "needsMap": + NeedsMapElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1928,6 +2090,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "translation": + TranslationElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2773,6 +2948,88 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "kind": + KindElement = (Code)value; + return this; + case "software": + Software = (Hl7.Fhir.Model.TerminologyCapabilities.SoftwareComponent)value; + return this; + case "implementation": + Implementation = (Hl7.Fhir.Model.TerminologyCapabilities.ImplementationComponent)value; + return this; + case "lockedDate": + LockedDateElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "codeSystem": + CodeSystem = (List)value; + return this; + case "expansion": + Expansion = (Hl7.Fhir.Model.TerminologyCapabilities.ExpansionComponent)value; + return this; + case "codeSearch": + CodeSearchElement = (Code)value; + return this; + case "validateCode": + ValidateCode = (Hl7.Fhir.Model.TerminologyCapabilities.ValidateCodeComponent)value; + return this; + case "translation": + Translation = (Hl7.Fhir.Model.TerminologyCapabilities.TranslationComponent)value; + return this; + case "closure": + Closure = (Hl7.Fhir.Model.TerminologyCapabilities.ClosureComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/TestReport.cs b/src/Hl7.Fhir.R4B/Model/Generated/TestReport.cs index 500d4a60ae..874dd68bc9 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/TestReport.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/TestReport.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -397,6 +397,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "uri": + UriElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "display": + DisplayElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -510,6 +529,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "action": + Action = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -645,6 +677,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "operation": + Operation = (Hl7.Fhir.Model.TestReport.OperationComponent)value; + return this; + case "assert": + Assert = (Hl7.Fhir.Model.TestReport.AssertComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -858,6 +906,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "result": + ResultElement = (Code)value; + return this; + case "message": + MessageElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "detail": + DetailElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1072,6 +1139,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "result": + ResultElement = (Code)value; + return this; + case "message": + MessageElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "detail": + DetailElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1263,6 +1349,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "action": + Action = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1400,6 +1505,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "operation": + Operation = (Hl7.Fhir.Model.TestReport.OperationComponent)value; + return this; + case "assert": + Assert = (Hl7.Fhir.Model.TestReport.AssertComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1515,6 +1636,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "action": + Action = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1630,6 +1764,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "operation": + Operation = (Hl7.Fhir.Model.TestReport.OperationComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2078,6 +2225,52 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "testScript": + TestScript = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "result": + ResultElement = (Code)value; + return this; + case "score": + ScoreElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "tester": + TesterElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "issued": + IssuedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "participant": + Participant = (List)value; + return this; + case "setup": + Setup = (Hl7.Fhir.Model.TestReport.SetupComponent)value; + return this; + case "test": + Test = (List)value; + return this; + case "teardown": + Teardown = (Hl7.Fhir.Model.TestReport.TeardownComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/TestScript.cs b/src/Hl7.Fhir.R4B/Model/Generated/TestScript.cs index a25f352951..db61973e15 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/TestScript.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/TestScript.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -439,6 +439,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "index": + IndexElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "profile": + Profile = (Hl7.Fhir.Model.Coding)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -596,6 +612,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "index": + IndexElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "profile": + Profile = (Hl7.Fhir.Model.Coding)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -733,6 +765,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "link": + Link = (List)value; + return this; + case "capability": + Capability = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -905,6 +953,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1277,6 +1341,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "required": + RequiredElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "validated": + ValidatedElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "origin": + OriginElement = (List)value; + return this; + case "destination": + DestinationElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "link": + LinkElement = (List)value; + return this; + case "capabilities": + CapabilitiesElement = (Hl7.Fhir.Model.Canonical)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1478,6 +1573,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "autocreate": + AutocreateElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "autodelete": + AutodeleteElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "resource": + Resource = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1886,6 +2000,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "defaultValue": + DefaultValueElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "expression": + ExpressionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "headerField": + HeaderFieldElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "hint": + HintElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "path": + PathElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "sourceId": + SourceIdElement = (Hl7.Fhir.Model.Id)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2004,6 +2152,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "action": + Action = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2139,6 +2300,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "operation": + Operation = (Hl7.Fhir.Model.TestScript.OperationComponent)value; + return this; + case "assert": + Assert = (Hl7.Fhir.Model.TestScript.AssertComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2868,6 +3045,67 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.Coding)value; + return this; + case "resource": + ResourceElement = (Code)value; + return this; + case "label": + LabelElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "accept": + AcceptElement = (Hl7.Fhir.Model.Code)value; + return this; + case "contentType": + ContentTypeElement = (Hl7.Fhir.Model.Code)value; + return this; + case "destination": + DestinationElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "encodeRequestUrl": + EncodeRequestUrlElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "method": + MethodElement = (Code)value; + return this; + case "origin": + OriginElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "params": + ParamsElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "requestHeader": + RequestHeader = (List)value; + return this; + case "requestId": + RequestIdElement = (Hl7.Fhir.Model.Id)value; + return this; + case "responseId": + ResponseIdElement = (Hl7.Fhir.Model.Id)value; + return this; + case "sourceId": + SourceIdElement = (Hl7.Fhir.Model.Id)value; + return this; + case "targetId": + TargetIdElement = (Hl7.Fhir.Model.Id)value; + return this; + case "url": + UrlElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3057,6 +3295,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "field": + FieldElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "value": + ValueElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -4021,6 +4275,82 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "label": + LabelElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "direction": + DirectionElement = (Code)value; + return this; + case "compareToSourceId": + CompareToSourceIdElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "compareToSourceExpression": + CompareToSourceExpressionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "compareToSourcePath": + CompareToSourcePathElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contentType": + ContentTypeElement = (Hl7.Fhir.Model.Code)value; + return this; + case "expression": + ExpressionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "headerField": + HeaderFieldElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "minimumId": + MinimumIdElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "navigationLinks": + NavigationLinksElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "operator": + OperatorElement = (Code)value; + return this; + case "path": + PathElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "requestMethod": + RequestMethodElement = (Code)value; + return this; + case "requestURL": + RequestURLElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "resource": + ResourceElement = (Code)value; + return this; + case "response": + ResponseElement = (Code)value; + return this; + case "responseCode": + ResponseCodeElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "sourceId": + SourceIdElement = (Hl7.Fhir.Model.Id)value; + return this; + case "validateProfileId": + ValidateProfileIdElement = (Hl7.Fhir.Model.Id)value; + return this; + case "value": + ValueElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "warningOnly": + WarningOnlyElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -4231,6 +4561,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "action": + Action = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -4368,6 +4717,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "operation": + Operation = (Hl7.Fhir.Model.TestScript.OperationComponent)value; + return this; + case "assert": + Assert = (Hl7.Fhir.Model.TestScript.AssertComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -4483,6 +4848,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "action": + Action = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -4598,6 +4976,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "operation": + Operation = (Hl7.Fhir.Model.TestScript.OperationComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -5394,6 +5785,88 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "origin": + Origin = (List)value; + return this; + case "destination": + Destination = (List)value; + return this; + case "metadata": + Metadata = (Hl7.Fhir.Model.TestScript.MetadataComponent)value; + return this; + case "fixture": + Fixture = (List)value; + return this; + case "profile": + Profile = (List)value; + return this; + case "variable": + Variable = (List)value; + return this; + case "setup": + Setup = (Hl7.Fhir.Model.TestScript.SetupComponent)value; + return this; + case "test": + Test = (List)value; + return this; + case "teardown": + Teardown = (Hl7.Fhir.Model.TestScript.TeardownComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/Timing.cs b/src/Hl7.Fhir.R4B/Model/Generated/Timing.cs index e2c36b12a7..67a143ad88 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/Timing.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/Timing.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -943,6 +943,61 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "bounds": + Bounds = (Hl7.Fhir.Model.DataType)value; + return this; + case "count": + CountElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "countMax": + CountMaxElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "duration": + DurationElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "durationMax": + DurationMaxElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "durationUnit": + DurationUnitElement = (Code)value; + return this; + case "frequency": + FrequencyElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "frequencyMax": + FrequencyMaxElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "period": + PeriodElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "periodMax": + PeriodMaxElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "periodUnit": + PeriodUnitElement = (Code)value; + return this; + case "dayOfWeek": + DayOfWeekElement = (List>)value; + return this; + case "timeOfDay": + TimeOfDayElement = (List)value; + return this; + case "when": + WhenElement = (List>)value; + return this; + case "offset": + OffsetElement = (Hl7.Fhir.Model.UnsignedInt)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1115,6 +1170,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "event": + EventElement = (List)value; + return this; + case "repeat": + Repeat = (Hl7.Fhir.Model.Timing.RepeatComponent)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/TriggerDefinition.cs b/src/Hl7.Fhir.R4B/Model/Generated/TriggerDefinition.cs index 1ed1c5aae5..4a34f4b1dd 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/TriggerDefinition.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/TriggerDefinition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -333,6 +333,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "timing": + Timing = (Hl7.Fhir.Model.DataType)value; + return this; + case "data": + Data = (List)value; + return this; + case "condition": + Condition = (Hl7.Fhir.Model.Expression)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/VerificationResult.cs b/src/Hl7.Fhir.R4B/Model/Generated/VerificationResult.cs index 58880f3cad..8d4116263c 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/VerificationResult.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/VerificationResult.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -358,6 +358,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "who": + Who = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "type": + Type = (List)value; + return this; + case "communicationMethod": + CommunicationMethod = (List)value; + return this; + case "validationStatus": + ValidationStatus = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "validationDate": + ValidationDateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "canPushUpdates": + CanPushUpdates = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "pushTypeAvailable": + PushTypeAvailable = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -680,6 +711,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "who": + Who = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "onBehalfOf": + OnBehalfOf = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "communicationMethod": + CommunicationMethod = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "sourceIdentityCertificate": + SourceIdentityCertificateElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "proxyIdentityCertificate": + ProxyIdentityCertificateElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "proxySignature": + ProxySignature = (Hl7.Fhir.Model.Signature)value; + return this; + case "sourceSignature": + SourceSignature = (Hl7.Fhir.Model.Signature)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -860,6 +925,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "organization": + Organization = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "identityCertificate": + IdentityCertificateElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "attestationSignature": + AttestationSignature = (Hl7.Fhir.Model.Signature)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1335,6 +1419,58 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "target": + Target = (List)value; + return this; + case "targetLocation": + TargetLocationElement = (List)value; + return this; + case "need": + Need = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "statusDate": + StatusDateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "validationType": + ValidationType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "validationProcess": + ValidationProcess = (List)value; + return this; + case "frequency": + Frequency = (Hl7.Fhir.Model.Timing)value; + return this; + case "lastPerformed": + LastPerformedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "nextScheduled": + NextScheduledElement = (Hl7.Fhir.Model.Date)value; + return this; + case "failureAction": + FailureAction = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "primarySource": + PrimarySource = (List)value; + return this; + case "attestation": + Attestation = (Hl7.Fhir.Model.VerificationResult.AttestationComponent)value; + return this; + case "validator": + Validator = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/VisionPrescription.cs b/src/Hl7.Fhir.R4B/Model/Generated/VisionPrescription.cs index 4c7450064a..567d27a4fc 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/VisionPrescription.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/VisionPrescription.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 using System; using System.Collections.Generic; @@ -680,6 +680,58 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "product": + Product = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "eye": + EyeElement = (Code)value; + return this; + case "sphere": + SphereElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "cylinder": + CylinderElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "axis": + AxisElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "prism": + Prism = (List)value; + return this; + case "add": + AddElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "power": + PowerElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "backCurve": + BackCurveElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "diameter": + DiameterElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "duration": + Duration = (Hl7.Fhir.Model.Quantity)value; + return this; + case "color": + ColorElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "brand": + BrandElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "note": + Note = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -867,6 +919,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "amount": + AmountElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "base": + BaseElement = (Code)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1182,6 +1250,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "created": + CreatedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "dateWritten": + DateWrittenElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "prescriber": + Prescriber = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "lensSpecification": + LensSpecification = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.R4B/Model/Generated/_GeneratorLog.cs b/src/Hl7.Fhir.R4B/Model/Generated/_GeneratorLog.cs index 12c2470688..b216afde8e 100644 --- a/src/Hl7.Fhir.R4B/Model/Generated/_GeneratorLog.cs +++ b/src/Hl7.Fhir.R4B/Model/Generated/_GeneratorLog.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r4b.expansions#4.3.0, hl7.fhir.r4b.core#4.3.0 +// Contents of: hl7.fhir.r4b.expansions@4.3.0, hl7.fhir.r4b.core@4.3.0 // Generated Shared Enumeration: ActionCardinalityBehavior (http://hl7.org/fhir/ValueSet/action-cardinality-behavior) // Used in model class (resource): PlanDefinition.action.cardinalityBehavior diff --git a/src/Hl7.Fhir.STU3/CompatibilitySuppressions.xml b/src/Hl7.Fhir.STU3/CompatibilitySuppressions.xml new file mode 100644 index 0000000000..b34981588c --- /dev/null +++ b/src/Hl7.Fhir.STU3/CompatibilitySuppressions.xml @@ -0,0 +1,480 @@ + + + + + CP0002 + F:Hl7.Fhir.Model.ExplanationOfBenefit.ActInvoiceGroupCode.ActInvoiceInterGroupCode + lib/net8.0/Hl7.Fhir.STU3.dll + lib/net8.0/Hl7.Fhir.STU3.dll + true + + + CP0002 + F:Hl7.Fhir.Model.ExplanationOfBenefit.ActInvoiceGroupCode.ActInvoiceRootGroupCode + lib/net8.0/Hl7.Fhir.STU3.dll + lib/net8.0/Hl7.Fhir.STU3.dll + true + + + CP0002 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.Question + lib/net8.0/Hl7.Fhir.STU3.dll + lib/net8.0/Hl7.Fhir.STU3.dll + true + + + CP0002 + F:Hl7.Fhir.Model.ExplanationOfBenefit.ActInvoiceGroupCode.ActInvoiceInterGroupCode + lib/netstandard2.0/Hl7.Fhir.STU3.dll + lib/netstandard2.0/Hl7.Fhir.STU3.dll + true + + + CP0002 + F:Hl7.Fhir.Model.ExplanationOfBenefit.ActInvoiceGroupCode.ActInvoiceRootGroupCode + lib/netstandard2.0/Hl7.Fhir.STU3.dll + lib/netstandard2.0/Hl7.Fhir.STU3.dll + true + + + CP0002 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.Question + lib/netstandard2.0/Hl7.Fhir.STU3.dll + lib/netstandard2.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.ExplanationOfBenefit.ActInvoiceGroupCode.CPINV + lib/net8.0/Hl7.Fhir.STU3.dll + lib/net8.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.ExplanationOfBenefit.ActInvoiceGroupCode.CPNDDRGING + lib/net8.0/Hl7.Fhir.STU3.dll + lib/net8.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.ExplanationOfBenefit.ActInvoiceGroupCode.CPNDINDING + lib/net8.0/Hl7.Fhir.STU3.dll + lib/net8.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.ExplanationOfBenefit.ActInvoiceGroupCode.CPNDSUPING + lib/net8.0/Hl7.Fhir.STU3.dll + lib/net8.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.ExplanationOfBenefit.ActInvoiceGroupCode.CSINV + lib/net8.0/Hl7.Fhir.STU3.dll + lib/net8.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.ExplanationOfBenefit.ActInvoiceGroupCode.CSPINV + lib/net8.0/Hl7.Fhir.STU3.dll + lib/net8.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.ExplanationOfBenefit.ActInvoiceGroupCode.DRUGING + lib/net8.0/Hl7.Fhir.STU3.dll + lib/net8.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.ExplanationOfBenefit.ActInvoiceGroupCode.FININV + lib/net8.0/Hl7.Fhir.STU3.dll + lib/net8.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.ExplanationOfBenefit.ActInvoiceGroupCode.FRAMEING + lib/net8.0/Hl7.Fhir.STU3.dll + lib/net8.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.ExplanationOfBenefit.ActInvoiceGroupCode.LENSING + lib/net8.0/Hl7.Fhir.STU3.dll + lib/net8.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.ExplanationOfBenefit.ActInvoiceGroupCode.OHSINV + lib/net8.0/Hl7.Fhir.STU3.dll + lib/net8.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.ExplanationOfBenefit.ActInvoiceGroupCode.PAINV + lib/net8.0/Hl7.Fhir.STU3.dll + lib/net8.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.ExplanationOfBenefit.ActInvoiceGroupCode.PRDING + lib/net8.0/Hl7.Fhir.STU3.dll + lib/net8.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.ExplanationOfBenefit.ActInvoiceGroupCode.RXCINV + lib/net8.0/Hl7.Fhir.STU3.dll + lib/net8.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.ExplanationOfBenefit.ActInvoiceGroupCode.RXDINV + lib/net8.0/Hl7.Fhir.STU3.dll + lib/net8.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.ExplanationOfBenefit.ActInvoiceGroupCode.SBFINV + lib/net8.0/Hl7.Fhir.STU3.dll + lib/net8.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.ExplanationOfBenefit.ActInvoiceGroupCode.VRXINV + lib/net8.0/Hl7.Fhir.STU3.dll + lib/net8.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.Attachment + lib/net8.0/Hl7.Fhir.STU3.dll + lib/net8.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.Boolean + lib/net8.0/Hl7.Fhir.STU3.dll + lib/net8.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.Choice + lib/net8.0/Hl7.Fhir.STU3.dll + lib/net8.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.Date + lib/net8.0/Hl7.Fhir.STU3.dll + lib/net8.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.DateTime + lib/net8.0/Hl7.Fhir.STU3.dll + lib/net8.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.Decimal + lib/net8.0/Hl7.Fhir.STU3.dll + lib/net8.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.Integer + lib/net8.0/Hl7.Fhir.STU3.dll + lib/net8.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.OpenChoice + lib/net8.0/Hl7.Fhir.STU3.dll + lib/net8.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.Quantity + lib/net8.0/Hl7.Fhir.STU3.dll + lib/net8.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.Reference + lib/net8.0/Hl7.Fhir.STU3.dll + lib/net8.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.String + lib/net8.0/Hl7.Fhir.STU3.dll + lib/net8.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.Text + lib/net8.0/Hl7.Fhir.STU3.dll + lib/net8.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.Time + lib/net8.0/Hl7.Fhir.STU3.dll + lib/net8.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.Url + lib/net8.0/Hl7.Fhir.STU3.dll + lib/net8.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.ExplanationOfBenefit.ActInvoiceGroupCode.CPINV + lib/netstandard2.0/Hl7.Fhir.STU3.dll + lib/netstandard2.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.ExplanationOfBenefit.ActInvoiceGroupCode.CPNDDRGING + lib/netstandard2.0/Hl7.Fhir.STU3.dll + lib/netstandard2.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.ExplanationOfBenefit.ActInvoiceGroupCode.CPNDINDING + lib/netstandard2.0/Hl7.Fhir.STU3.dll + lib/netstandard2.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.ExplanationOfBenefit.ActInvoiceGroupCode.CPNDSUPING + lib/netstandard2.0/Hl7.Fhir.STU3.dll + lib/netstandard2.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.ExplanationOfBenefit.ActInvoiceGroupCode.CSINV + lib/netstandard2.0/Hl7.Fhir.STU3.dll + lib/netstandard2.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.ExplanationOfBenefit.ActInvoiceGroupCode.CSPINV + lib/netstandard2.0/Hl7.Fhir.STU3.dll + lib/netstandard2.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.ExplanationOfBenefit.ActInvoiceGroupCode.DRUGING + lib/netstandard2.0/Hl7.Fhir.STU3.dll + lib/netstandard2.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.ExplanationOfBenefit.ActInvoiceGroupCode.FININV + lib/netstandard2.0/Hl7.Fhir.STU3.dll + lib/netstandard2.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.ExplanationOfBenefit.ActInvoiceGroupCode.FRAMEING + lib/netstandard2.0/Hl7.Fhir.STU3.dll + lib/netstandard2.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.ExplanationOfBenefit.ActInvoiceGroupCode.LENSING + lib/netstandard2.0/Hl7.Fhir.STU3.dll + lib/netstandard2.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.ExplanationOfBenefit.ActInvoiceGroupCode.OHSINV + lib/netstandard2.0/Hl7.Fhir.STU3.dll + lib/netstandard2.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.ExplanationOfBenefit.ActInvoiceGroupCode.PAINV + lib/netstandard2.0/Hl7.Fhir.STU3.dll + lib/netstandard2.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.ExplanationOfBenefit.ActInvoiceGroupCode.PRDING + lib/netstandard2.0/Hl7.Fhir.STU3.dll + lib/netstandard2.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.ExplanationOfBenefit.ActInvoiceGroupCode.RXCINV + lib/netstandard2.0/Hl7.Fhir.STU3.dll + lib/netstandard2.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.ExplanationOfBenefit.ActInvoiceGroupCode.RXDINV + lib/netstandard2.0/Hl7.Fhir.STU3.dll + lib/netstandard2.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.ExplanationOfBenefit.ActInvoiceGroupCode.SBFINV + lib/netstandard2.0/Hl7.Fhir.STU3.dll + lib/netstandard2.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.ExplanationOfBenefit.ActInvoiceGroupCode.VRXINV + lib/netstandard2.0/Hl7.Fhir.STU3.dll + lib/netstandard2.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.Attachment + lib/netstandard2.0/Hl7.Fhir.STU3.dll + lib/netstandard2.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.Boolean + lib/netstandard2.0/Hl7.Fhir.STU3.dll + lib/netstandard2.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.Choice + lib/netstandard2.0/Hl7.Fhir.STU3.dll + lib/netstandard2.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.Date + lib/netstandard2.0/Hl7.Fhir.STU3.dll + lib/netstandard2.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.DateTime + lib/netstandard2.0/Hl7.Fhir.STU3.dll + lib/netstandard2.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.Decimal + lib/netstandard2.0/Hl7.Fhir.STU3.dll + lib/netstandard2.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.Integer + lib/netstandard2.0/Hl7.Fhir.STU3.dll + lib/netstandard2.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.OpenChoice + lib/netstandard2.0/Hl7.Fhir.STU3.dll + lib/netstandard2.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.Quantity + lib/netstandard2.0/Hl7.Fhir.STU3.dll + lib/netstandard2.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.Reference + lib/netstandard2.0/Hl7.Fhir.STU3.dll + lib/netstandard2.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.String + lib/netstandard2.0/Hl7.Fhir.STU3.dll + lib/netstandard2.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.Text + lib/netstandard2.0/Hl7.Fhir.STU3.dll + lib/netstandard2.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.Time + lib/netstandard2.0/Hl7.Fhir.STU3.dll + lib/netstandard2.0/Hl7.Fhir.STU3.dll + true + + + CP0011 + F:Hl7.Fhir.Model.Questionnaire.QuestionnaireItemType.Url + lib/netstandard2.0/Hl7.Fhir.STU3.dll + lib/netstandard2.0/Hl7.Fhir.STU3.dll + true + + \ No newline at end of file diff --git a/src/Hl7.Fhir.STU3/Model/Generated/Account.cs b/src/Hl7.Fhir.STU3/Model/Generated/Account.cs index 1588f6e0a3..6db3e1a1d4 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/Account.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/Account.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -236,6 +236,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "coverage": + Coverage = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "priority": + PriorityElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -413,6 +429,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "party": + Party = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "onHold": + OnHoldElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -808,6 +843,52 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "active": + Active = (Hl7.Fhir.Model.Period)value; + return this; + case "balance": + Balance = (Hl7.Fhir.Model.Money)value; + return this; + case "coverage": + Coverage = (List)value; + return this; + case "owner": + Owner = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "guarantor": + Guarantor = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/ActivityDefinition.cs b/src/Hl7.Fhir.STU3/Model/Generated/ActivityDefinition.cs index 9b8cb37c17..ecd573e58b 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/ActivityDefinition.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/ActivityDefinition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -207,6 +207,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "role": + Role = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -456,6 +472,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "path": + PathElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "language": + LanguageElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "expression": + ExpressionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1553,6 +1591,118 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "usage": + UsageElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "approvalDate": + ApprovalDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "lastReviewDate": + LastReviewDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "effectivePeriod": + EffectivePeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "topic": + Topic = (List)value; + return this; + case "contributor": + Contributor = (List)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "relatedArtifact": + RelatedArtifact = (List)value; + return this; + case "library": + Library = (List)value; + return this; + case "kind": + KindElement = (Code)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "timing": + Timing = (Hl7.Fhir.Model.DataType)value; + return this; + case "location": + Location = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "participant": + Participant = (List)value; + return this; + case "product": + Product = (Hl7.Fhir.Model.DataType)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "dosage": + Dosage = (List)value; + return this; + case "bodySite": + BodySite = (List)value; + return this; + case "transform": + Transform = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "dynamicValue": + DynamicValue = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/Address.cs b/src/Hl7.Fhir.STU3/Model/Generated/Address.cs index 9b4546726d..8f8382bd84 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/Address.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/Address.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -566,6 +566,46 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "use": + UseElement = (Code)value; + return this; + case "type": + TypeElement = (Code)value; + return this; + case "text": + TextElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "line": + LineElement = (List)value; + return this; + case "city": + CityElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "district": + DistrictElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "state": + StateElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "postalCode": + PostalCodeElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "country": + CountryElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/AdverseEvent.cs b/src/Hl7.Fhir.STU3/Model/Generated/AdverseEvent.cs index ccf6362fea..eb8506c65f 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/AdverseEvent.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/AdverseEvent.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -426,6 +426,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "instance": + Instance = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "causality": + CausalityElement = (Code)value; + return this; + case "causalityAssessment": + CausalityAssessment = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "causalityProductRelatedness": + CausalityProductRelatednessElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "causalityMethod": + CausalityMethod = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "causalityAuthor": + CausalityAuthor = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "causalityResult": + CausalityResult = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -927,6 +958,64 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "category": + CategoryElement = (Code)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "reaction": + Reaction = (List)value; + return this; + case "location": + Location = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "seriousness": + Seriousness = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "outcome": + Outcome = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "recorder": + Recorder = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "eventParticipant": + EventParticipant = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "suspectEntity": + SuspectEntity = (List)value; + return this; + case "subjectMedicalHistory": + SubjectMedicalHistory = (List)value; + return this; + case "referenceDocument": + ReferenceDocument = (List)value; + return this; + case "study": + Study = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/Age.cs b/src/Hl7.Fhir.STU3/Model/Generated/Age.cs index 10ee4d83ec..8eabde3886 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/Age.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/Age.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/AllergyIntolerance.cs b/src/Hl7.Fhir.STU3/Model/Generated/AllergyIntolerance.cs index 0d292425ba..ef33cd5725 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/AllergyIntolerance.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/AllergyIntolerance.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -526,6 +526,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "substance": + Substance = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "manifestation": + Manifestation = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "onset": + OnsetElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "severity": + SeverityElement = (Code)value; + return this; + case "exposureRoute": + ExposureRoute = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "note": + Note = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1075,6 +1106,61 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "clinicalStatus": + ClinicalStatusElement = (Code)value; + return this; + case "verificationStatus": + VerificationStatusElement = (Code)value; + return this; + case "type": + TypeElement = (Code)value; + return this; + case "category": + CategoryElement = (List>)value; + return this; + case "criticality": + CriticalityElement = (Code)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "onset": + Onset = (Hl7.Fhir.Model.DataType)value; + return this; + case "assertedDate": + AssertedDateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "recorder": + Recorder = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "asserter": + Asserter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "lastOccurrence": + LastOccurrenceElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "note": + Note = (List)value; + return this; + case "reaction": + Reaction = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/Annotation.cs b/src/Hl7.Fhir.STU3/Model/Generated/Annotation.cs index 07530ca6c4..58a350cf65 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/Annotation.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/Annotation.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -230,6 +230,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "author": + Author = (Hl7.Fhir.Model.DataType)value; + return this; + case "time": + TimeElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "text": + TextElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/Appointment.cs b/src/Hl7.Fhir.STU3/Model/Generated/Appointment.cs index 7674fb5ad1..690d1daed2 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/Appointment.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/Appointment.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -355,6 +355,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (List)value; + return this; + case "actor": + Actor = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "required": + RequiredElement = (Code)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1025,6 +1047,76 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "serviceCategory": + ServiceCategory = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "serviceType": + ServiceType = (List)value; + return this; + case "specialty": + Specialty = (List)value; + return this; + case "appointmentType": + AppointmentType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "reason": + Reason = (List)value; + return this; + case "indication": + Indication = (List)value; + return this; + case "priority": + PriorityElement = (Hl7.Fhir.Model.UnsignedInt)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "supportingInformation": + SupportingInformation = (List)value; + return this; + case "start": + StartElement = (Hl7.Fhir.Model.Instant)value; + return this; + case "end": + EndElement = (Hl7.Fhir.Model.Instant)value; + return this; + case "minutesDuration": + MinutesDurationElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "slot": + Slot = (List)value; + return this; + case "created": + CreatedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "comment": + CommentElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "incomingReferral": + IncomingReferral = (List)value; + return this; + case "participant": + Participant = (List)value; + return this; + case "requestedPeriod": + RequestedPeriod = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/AppointmentResponse.cs b/src/Hl7.Fhir.STU3/Model/Generated/AppointmentResponse.cs index e847b7667a..64e4977b0d 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/AppointmentResponse.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/AppointmentResponse.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -376,6 +376,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "appointment": + Appointment = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "start": + StartElement = (Hl7.Fhir.Model.Instant)value; + return this; + case "end": + EndElement = (Hl7.Fhir.Model.Instant)value; + return this; + case "participantType": + ParticipantType = (List)value; + return this; + case "actor": + Actor = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "participantStatus": + ParticipantStatusElement = (Code)value; + return this; + case "comment": + CommentElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/AuditEvent.cs b/src/Hl7.Fhir.STU3/Model/Generated/AuditEvent.cs index 0f193bc129..dca68dc889 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/AuditEvent.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/AuditEvent.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -574,6 +574,49 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "role": + Role = (List)value; + return this; + case "reference": + Reference = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "userId": + UserId = (Hl7.Fhir.Model.Identifier)value; + return this; + case "altId": + AltIdElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "requestor": + RequestorElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "location": + Location = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "policy": + PolicyElement = (List)value; + return this; + case "media": + Media = (Hl7.Fhir.Model.Coding)value; + return this; + case "network": + Network = (Hl7.Fhir.Model.AuditEvent.NetworkComponent)value; + return this; + case "purposeOfUse": + PurposeOfUse = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -756,6 +799,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "address": + AddressElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "type": + TypeElement = (Code)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -934,6 +993,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "site": + SiteElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "type": + Type = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1301,6 +1379,46 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "reference": + Reference = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.Coding)value; + return this; + case "role": + Role = (Hl7.Fhir.Model.Coding)value; + return this; + case "lifecycle": + Lifecycle = (Hl7.Fhir.Model.Coding)value; + return this; + case "securityLabel": + SecurityLabel = (List)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "query": + QueryElement = (Hl7.Fhir.Model.Base64Binary)value; + return this; + case "detail": + Detail = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1482,6 +1600,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "value": + ValueElement = (Hl7.Fhir.Model.Base64Binary)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1854,6 +1988,46 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.Coding)value; + return this; + case "subtype": + Subtype = (List)value; + return this; + case "action": + ActionElement = (Code)value; + return this; + case "recorded": + RecordedElement = (Hl7.Fhir.Model.Instant)value; + return this; + case "outcome": + OutcomeElement = (Code)value; + return this; + case "outcomeDesc": + OutcomeDescElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "purposeOfEvent": + PurposeOfEvent = (List)value; + return this; + case "agent": + Agent = (List)value; + return this; + case "source": + Source = (Hl7.Fhir.Model.AuditEvent.SourceComponent)value; + return this; + case "entity": + Entity = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/Basic.cs b/src/Hl7.Fhir.STU3/Model/Generated/Basic.cs index 8b76f9f50b..285957a1e4 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/Basic.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/Basic.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -258,6 +258,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "created": + CreatedElement = (Hl7.Fhir.Model.Date)value; + return this; + case "author": + Author = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/BodySite.cs b/src/Hl7.Fhir.STU3/Model/Generated/BodySite.cs index b90c1a5513..2d71d938e4 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/BodySite.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/BodySite.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -319,6 +319,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "active": + ActiveElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "qualifier": + Qualifier = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "image": + Image = (List)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/CapabilityStatement.cs b/src/Hl7.Fhir.STU3/Model/Generated/CapabilityStatement.cs index 0a08e0106d..3210f0c30e 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/CapabilityStatement.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/CapabilityStatement.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -617,6 +617,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "releaseDate": + ReleaseDateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -792,6 +811,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1116,6 +1151,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "mode": + ModeElement = (Code)value; + return this; + case "documentation": + DocumentationElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "security": + Security = (Hl7.Fhir.Model.CapabilityStatement.SecurityComponent)value; + return this; + case "resource": + Resource = (List)value; + return this; + case "interaction": + Interaction = (List)value; + return this; + case "searchParam": + SearchParam = (List)value; + return this; + case "operation": + Operation = (List)value; + return this; + case "compartment": + CompartmentElement = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1338,6 +1407,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "cors": + CorsElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "service": + Service = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "certificate": + Certificate = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1509,6 +1600,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Hl7.Fhir.Model.Code)value; + return this; + case "blob": + BlobElement = (Hl7.Fhir.Model.Base64Binary)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2152,6 +2259,61 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "profile": + Profile = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "documentation": + DocumentationElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "interaction": + Interaction = (List)value; + return this; + case "versioning": + VersioningElement = (Code)value; + return this; + case "readHistory": + ReadHistoryElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "updateCreate": + UpdateCreateElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "conditionalCreate": + ConditionalCreateElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "conditionalRead": + ConditionalReadElement = (Code)value; + return this; + case "conditionalUpdate": + ConditionalUpdateElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "conditionalDelete": + ConditionalDeleteElement = (Code)value; + return this; + case "referencePolicy": + ReferencePolicyElement = (List>)value; + return this; + case "searchInclude": + SearchIncludeElement = (List)value; + return this; + case "searchRevInclude": + SearchRevIncludeElement = (List)value; + return this; + case "searchParam": + SearchParam = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2339,6 +2501,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + CodeElement = (Code)value; + return this; + case "documentation": + DocumentationElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2592,6 +2770,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "definition": + DefinitionElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "type": + TypeElement = (Code)value; + return this; + case "documentation": + DocumentationElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2768,6 +2968,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + CodeElement = (Code)value; + return this; + case "documentation": + DocumentationElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2925,6 +3141,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "definition": + Definition = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3163,6 +3395,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "endpoint": + Endpoint = (List)value; + return this; + case "reliableCache": + ReliableCacheElement = (Hl7.Fhir.Model.UnsignedInt)value; + return this; + case "documentation": + DocumentationElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "supportedMessage": + SupportedMessage = (List)value; + return this; + case "event": + Event = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3322,6 +3579,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "protocol": + Protocol = (Hl7.Fhir.Model.Coding)value; + return this; + case "address": + AddressElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3482,6 +3755,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "mode": + ModeElement = (Code)value; + return this; + case "definition": + Definition = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3811,6 +4100,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.Coding)value; + return this; + case "category": + CategoryElement = (Code)value; + return this; + case "mode": + ModeElement = (Code)value; + return this; + case "focus": + FocusElement = (Code)value; + return this; + case "request": + Request = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "response": + Response = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "documentation": + DocumentationElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -4014,6 +4334,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "mode": + ModeElement = (Code)value; + return this; + case "documentation": + DocumentationElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "profile": + Profile = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -5009,6 +5348,97 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "kind": + KindElement = (Code)value; + return this; + case "instantiates": + InstantiatesElement = (List)value; + return this; + case "software": + Software = (Hl7.Fhir.Model.CapabilityStatement.SoftwareComponent)value; + return this; + case "implementation": + Implementation = (Hl7.Fhir.Model.CapabilityStatement.ImplementationComponent)value; + return this; + case "fhirVersion": + FhirVersionElement = (Hl7.Fhir.Model.Id)value; + return this; + case "acceptUnknown": + AcceptUnknownElement = (Code)value; + return this; + case "format": + FormatElement = (List)value; + return this; + case "patchFormat": + PatchFormatElement = (List)value; + return this; + case "implementationGuide": + ImplementationGuideElement = (List)value; + return this; + case "profile": + Profile = (List)value; + return this; + case "rest": + Rest = (List)value; + return this; + case "messaging": + Messaging = (List)value; + return this; + case "document": + Document = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/CarePlan.cs b/src/Hl7.Fhir.STU3/Model/Generated/CarePlan.cs index 994a970fe7..11fcf14ab5 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/CarePlan.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/CarePlan.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -394,6 +394,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "outcomeCodeableConcept": + OutcomeCodeableConcept = (List)value; + return this; + case "outcomeReference": + OutcomeReference = (List)value; + return this; + case "progress": + Progress = (List)value; + return this; + case "reference": + Reference = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "detail": + Detail = (Hl7.Fhir.Model.CarePlan.DetailComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -924,6 +949,64 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "definition": + Definition = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "reasonReference": + ReasonReference = (List)value; + return this; + case "goal": + Goal = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "statusReason": + StatusReasonElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "prohibited": + ProhibitedElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "scheduled": + Scheduled = (Hl7.Fhir.Model.DataType)value; + return this; + case "location": + Location = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "performer": + Performer = (List)value; + return this; + case "product": + Product = (Hl7.Fhir.Model.DataType)value; + return this; + case "dailyAmount": + DailyAmount = (Hl7.Fhir.Model.Quantity)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1551,6 +1634,76 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "definition": + Definition = (List)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "replaces": + Replaces = (List)value; + return this; + case "partOf": + PartOf = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "intent": + IntentElement = (Code)value; + return this; + case "category": + Category = (List)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "context": + Context = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "author": + Author = (List)value; + return this; + case "careTeam": + CareTeam = (List)value; + return this; + case "addresses": + Addresses = (List)value; + return this; + case "supportingInfo": + SupportingInfo = (List)value; + return this; + case "goal": + Goal = (List)value; + return this; + case "activity": + Activity = (List)value; + return this; + case "note": + Note = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/CareTeam.cs b/src/Hl7.Fhir.STU3/Model/Generated/CareTeam.cs index 9d04e719fa..a645511e6c 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/CareTeam.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/CareTeam.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -272,6 +272,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "role": + Role = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "member": + Member = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "onBehalfOf": + OnBehalfOf = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -659,6 +681,52 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "category": + Category = (List)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "context": + Context = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "participant": + Participant = (List)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "reasonReference": + ReasonReference = (List)value; + return this; + case "managingOrganization": + ManagingOrganization = (List)value; + return this; + case "note": + Note = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/ChargeItem.cs b/src/Hl7.Fhir.STU3/Model/Generated/ChargeItem.cs index 9a98dc6fa4..efa2fcea69 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/ChargeItem.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/ChargeItem.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -241,6 +241,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "role": + Role = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "actor": + Actor = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -929,6 +945,85 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "definition": + DefinitionElement = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "partOf": + PartOf = (List)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "context": + Context = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "occurrence": + Occurrence = (Hl7.Fhir.Model.DataType)value; + return this; + case "participant": + Participant = (List)value; + return this; + case "performingOrganization": + PerformingOrganization = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "requestingOrganization": + RequestingOrganization = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "bodysite": + Bodysite = (List)value; + return this; + case "factorOverride": + FactorOverrideElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "priceOverride": + PriceOverride = (Hl7.Fhir.Model.Money)value; + return this; + case "overrideReason": + OverrideReasonElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "enterer": + Enterer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "enteredDate": + EnteredDateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "reason": + Reason = (List)value; + return this; + case "service": + Service = (List)value; + return this; + case "account": + Account = (List)value; + return this; + case "note": + Note = (List)value; + return this; + case "supportingInformation": + SupportingInformation = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/Claim.cs b/src/Hl7.Fhir.STU3/Model/Generated/Claim.cs index 4863243be8..846d6d49a5 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/Claim.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/Claim.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -243,6 +243,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "claim": + Claim = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "relationship": + Relationship = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "reference": + Reference = (Hl7.Fhir.Model.Identifier)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -405,6 +424,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "resourceType": + ResourceType = (Hl7.Fhir.Model.Coding)value; + return this; + case "party": + Party = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -646,6 +684,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "provider": + Provider = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "responsible": + ResponsibleElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "role": + Role = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "qualification": + Qualification = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -896,6 +959,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "timing": + Timing = (Hl7.Fhir.Model.DataType)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + case "reason": + Reason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1104,6 +1195,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "diagnosis": + Diagnosis = (Hl7.Fhir.Model.DataType)value; + return this; + case "type": + Type = (List)value; + return this; + case "packageCode": + PackageCode = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1304,6 +1417,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "procedure": + Procedure = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1604,6 +1736,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "focal": + FocalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "coverage": + Coverage = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "businessArrangement": + BusinessArrangementElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "preAuthRef": + PreAuthRefElement = (List)value; + return this; + case "claimResponse": + ClaimResponse = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1791,6 +1951,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "date": + DateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "location": + Location = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2462,6 +2641,79 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "careTeamLinkId": + CareTeamLinkIdElement = (List)value; + return this; + case "diagnosisLinkId": + DiagnosisLinkIdElement = (List)value; + return this; + case "procedureLinkId": + ProcedureLinkIdElement = (List)value; + return this; + case "informationLinkId": + InformationLinkIdElement = (List)value; + return this; + case "revenue": + Revenue = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "service": + Service = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "modifier": + Modifier = (List)value; + return this; + case "programCode": + ProgramCode = (List)value; + return this; + case "serviced": + Serviced = (Hl7.Fhir.Model.DataType)value; + return this; + case "location": + Location = (Hl7.Fhir.Model.DataType)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "unitPrice": + UnitPrice = (Hl7.Fhir.Model.Money)value; + return this; + case "factor": + FactorElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "net": + Net = (Hl7.Fhir.Model.Money)value; + return this; + case "udi": + Udi = (List)value; + return this; + case "bodySite": + BodySite = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subSite": + SubSite = (List)value; + return this; + case "encounter": + Encounter = (List)value; + return this; + case "detail": + Detail = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2874,6 +3126,52 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "revenue": + Revenue = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "service": + Service = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "modifier": + Modifier = (List)value; + return this; + case "programCode": + ProgramCode = (List)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "unitPrice": + UnitPrice = (Hl7.Fhir.Model.Money)value; + return this; + case "factor": + FactorElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "net": + Net = (Hl7.Fhir.Model.Money)value; + return this; + case "udi": + Udi = (List)value; + return this; + case "subDetail": + SubDetail = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3255,6 +3553,49 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "revenue": + Revenue = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "service": + Service = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "modifier": + Modifier = (List)value; + return this; + case "programCode": + ProgramCode = (List)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "unitPrice": + UnitPrice = (Hl7.Fhir.Model.Money)value; + return this; + case "factor": + FactorElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "net": + Net = (Hl7.Fhir.Model.Money)value; + return this; + case "udi": + Udi = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -4061,6 +4402,106 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subType": + SubType = (List)value; + return this; + case "use": + UseElement = (Code)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "billablePeriod": + BillablePeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "created": + CreatedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "enterer": + Enterer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "insurer": + Insurer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "provider": + Provider = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "organization": + Organization = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "priority": + Priority = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "fundsReserve": + FundsReserve = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "related": + Related = (List)value; + return this; + case "prescription": + Prescription = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "originalPrescription": + OriginalPrescription = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "payee": + Payee = (Hl7.Fhir.Model.Claim.PayeeComponent)value; + return this; + case "referral": + Referral = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "facility": + Facility = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "careTeam": + CareTeam = (List)value; + return this; + case "information": + Information = (List)value; + return this; + case "diagnosis": + Diagnosis = (List)value; + return this; + case "procedure": + Procedure = (List)value; + return this; + case "insurance": + Insurance = (List)value; + return this; + case "accident": + Accident = (Hl7.Fhir.Model.Claim.AccidentComponent)value; + return this; + case "employmentImpacted": + EmploymentImpacted = (Hl7.Fhir.Model.Period)value; + return this; + case "hospitalization": + Hospitalization = (Hl7.Fhir.Model.Period)value; + return this; + case "item": + Item = (List)value; + return this; + case "total": + Total = (Hl7.Fhir.Model.Money)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/ClaimResponse.cs b/src/Hl7.Fhir.STU3/Model/Generated/ClaimResponse.cs index 3c6cb30e8f..3b8ea44e29 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/ClaimResponse.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/ClaimResponse.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -267,6 +267,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequenceLinkId": + SequenceLinkIdElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "noteNumber": + NoteNumberElement = (List)value; + return this; + case "adjudication": + Adjudication = (List)value; + return this; + case "detail": + Detail = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -467,6 +489,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "reason": + Reason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "amount": + Amount = (Hl7.Fhir.Model.Money)value; + return this; + case "value": + ValueElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -686,6 +730,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequenceLinkId": + SequenceLinkIdElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "noteNumber": + NoteNumberElement = (List)value; + return this; + case "adjudication": + Adjudication = (List)value; + return this; + case "subDetail": + SubDetail = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -883,6 +949,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequenceLinkId": + SequenceLinkIdElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "noteNumber": + NoteNumberElement = (List)value; + return this; + case "adjudication": + Adjudication = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1211,6 +1296,43 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequenceLinkId": + SequenceLinkIdElement = (List)value; + return this; + case "revenue": + Revenue = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "service": + Service = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "modifier": + Modifier = (List)value; + return this; + case "fee": + Fee = (Hl7.Fhir.Model.Money)value; + return this; + case "noteNumber": + NoteNumberElement = (List)value; + return this; + case "adjudication": + Adjudication = (List)value; + return this; + case "detail": + Detail = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1483,6 +1605,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "revenue": + Revenue = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "service": + Service = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "modifier": + Modifier = (List)value; + return this; + case "fee": + Fee = (Hl7.Fhir.Model.Money)value; + return this; + case "noteNumber": + NoteNumberElement = (List)value; + return this; + case "adjudication": + Adjudication = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1721,6 +1874,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequenceLinkId": + SequenceLinkIdElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "detailSequenceLinkId": + DetailSequenceLinkIdElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "subdetailSequenceLinkId": + SubdetailSequenceLinkIdElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1962,6 +2137,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "adjustment": + Adjustment = (Hl7.Fhir.Model.Money)value; + return this; + case "adjustmentReason": + AdjustmentReason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "amount": + Amount = (Hl7.Fhir.Model.Money)value; + return this; + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2181,6 +2384,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "number": + NumberElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "text": + TextElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "language": + Language = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2482,6 +2707,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "focal": + FocalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "coverage": + Coverage = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "businessArrangement": + BusinessArrangementElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "preAuthRef": + PreAuthRefElement = (List)value; + return this; + case "claimResponse": + ClaimResponse = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3126,6 +3379,85 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "created": + CreatedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "insurer": + Insurer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "requestProvider": + RequestProvider = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "requestOrganization": + RequestOrganization = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "request": + Request = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "outcome": + Outcome = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "disposition": + DispositionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "payeeType": + PayeeType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "item": + Item = (List)value; + return this; + case "addItem": + AddItem = (List)value; + return this; + case "error": + Error = (List)value; + return this; + case "totalCost": + TotalCost = (Hl7.Fhir.Model.Money)value; + return this; + case "unallocDeductable": + UnallocDeductable = (Hl7.Fhir.Model.Money)value; + return this; + case "totalBenefit": + TotalBenefit = (Hl7.Fhir.Model.Money)value; + return this; + case "payment": + Payment = (Hl7.Fhir.Model.ClaimResponse.PaymentComponent)value; + return this; + case "reserved": + Reserved = (Hl7.Fhir.Model.Coding)value; + return this; + case "form": + Form = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "processNote": + ProcessNote = (List)value; + return this; + case "communicationRequest": + CommunicationRequest = (List)value; + return this; + case "insurance": + Insurance = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/ClinicalImpression.cs b/src/Hl7.Fhir.STU3/Model/Generated/ClinicalImpression.cs index 06bfefd7a3..af7b0d2c96 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/ClinicalImpression.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/ClinicalImpression.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -218,6 +218,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "item": + Item = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -376,6 +392,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "item": + Item = (Hl7.Fhir.Model.DataType)value; + return this; + case "basis": + BasisElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -974,6 +1006,73 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "context": + Context = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "effective": + Effective = (Hl7.Fhir.Model.DataType)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "assessor": + Assessor = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "previous": + Previous = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "problem": + Problem = (List)value; + return this; + case "investigation": + Investigation = (List)value; + return this; + case "protocol": + ProtocolElement = (List)value; + return this; + case "summary": + SummaryElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "finding": + Finding = (List)value; + return this; + case "prognosisCodeableConcept": + PrognosisCodeableConcept = (List)value; + return this; + case "prognosisReference": + PrognosisReference = (List)value; + return this; + case "action": + Action = (List)value; + return this; + case "note": + Note = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/CodeSystem.cs b/src/Hl7.Fhir.STU3/Model/Generated/CodeSystem.cs index eb46daf064..45a05b4daf 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/CodeSystem.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/CodeSystem.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -418,6 +418,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + CodeElement = (Hl7.Fhir.Model.Code)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "operator": + OperatorElement = (List>)value; + return this; + case "value": + ValueElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -673,6 +695,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + CodeElement = (Hl7.Fhir.Model.Code)value; + return this; + case "uri": + UriElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "type": + TypeElement = (Code)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -953,6 +997,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + CodeElement = (Hl7.Fhir.Model.Code)value; + return this; + case "display": + DisplayElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "definition": + DefinitionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "designation": + Designation = (List)value; + return this; + case "property": + Property = (List)value; + return this; + case "concept": + Concept = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1152,6 +1224,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "language": + LanguageElement = (Hl7.Fhir.Model.Code)value; + return this; + case "use": + Use = (Hl7.Fhir.Model.Coding)value; + return this; + case "value": + ValueElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1310,6 +1401,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + CodeElement = (Hl7.Fhir.Model.Code)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2252,6 +2359,91 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "caseSensitive": + CaseSensitiveElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "valueSet": + ValueSetElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "hierarchyMeaning": + HierarchyMeaningElement = (Code)value; + return this; + case "compositional": + CompositionalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "versionNeeded": + VersionNeededElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "content": + ContentElement = (Code)value; + return this; + case "count": + CountElement = (Hl7.Fhir.Model.UnsignedInt)value; + return this; + case "filter": + Filter = (List)value; + return this; + case "property": + Property = (List)value; + return this; + case "concept": + Concept = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/Communication.cs b/src/Hl7.Fhir.STU3/Model/Generated/Communication.cs index 22d3e5daf9..76d6a853c4 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/Communication.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/Communication.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -168,6 +168,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "content": + Content = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -774,6 +787,76 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "definition": + Definition = (List)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "partOf": + PartOf = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "notDone": + NotDoneElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "notDoneReason": + NotDoneReason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "category": + Category = (List)value; + return this; + case "medium": + Medium = (List)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "recipient": + Recipient = (List)value; + return this; + case "topic": + Topic = (List)value; + return this; + case "context": + Context = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "sent": + SentElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "received": + ReceivedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "sender": + Sender = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "reasonReference": + ReasonReference = (List)value; + return this; + case "payload": + Payload = (List)value; + return this; + case "note": + Note = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/CommunicationRequest.cs b/src/Hl7.Fhir.STU3/Model/Generated/CommunicationRequest.cs index b94ac753a6..dc40102f84 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/CommunicationRequest.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/CommunicationRequest.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -168,6 +168,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "content": + Content = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -307,6 +320,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "agent": + Agent = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "onBehalfOf": + OnBehalfOf = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -896,6 +925,76 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "replaces": + Replaces = (List)value; + return this; + case "groupIdentifier": + GroupIdentifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "category": + Category = (List)value; + return this; + case "priority": + PriorityElement = (Code)value; + return this; + case "medium": + Medium = (List)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "recipient": + Recipient = (List)value; + return this; + case "topic": + Topic = (List)value; + return this; + case "context": + Context = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "payload": + Payload = (List)value; + return this; + case "occurrence": + Occurrence = (Hl7.Fhir.Model.DataType)value; + return this; + case "authoredOn": + AuthoredOnElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "sender": + Sender = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "requester": + Requester = (Hl7.Fhir.Model.CommunicationRequest.RequesterComponent)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "reasonReference": + ReasonReference = (List)value; + return this; + case "note": + Note = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/CompartmentDefinition.cs b/src/Hl7.Fhir.STU3/Model/Generated/CompartmentDefinition.cs index 027da958a0..9fa5a7f565 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/CompartmentDefinition.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/CompartmentDefinition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -265,6 +265,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + CodeElement = (Code)value; + return this; + case "param": + ParamElement = (List)value; + return this; + case "documentation": + DocumentationElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -869,6 +888,61 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "code": + CodeElement = (Code)value; + return this; + case "search": + SearchElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "resource": + Resource = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/Composition.cs b/src/Hl7.Fhir.STU3/Model/Generated/Composition.cs index 98fe54f2af..130f5de9cf 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/Composition.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/Composition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -346,6 +346,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "mode": + ModeElement = (List>)value; + return this; + case "time": + TimeElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "party": + Party = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -508,6 +527,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + CodeElement = (Code)value; + return this; + case "target": + Target = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -670,6 +705,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (List)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "detail": + Detail = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -977,6 +1031,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "text": + Text = (Hl7.Fhir.Model.Narrative)value; + return this; + case "mode": + ModeElement = (Code)value; + return this; + case "orderedBy": + OrderedBy = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "entry": + Entry = (List)value; + return this; + case "emptyReason": + EmptyReason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "section": + Section = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1472,6 +1560,61 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "class": + Class = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "author": + Author = (List)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "confidentiality": + ConfidentialityElement = (Code)value; + return this; + case "attester": + Attester = (List)value; + return this; + case "custodian": + Custodian = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "relatesTo": + RelatesTo = (List)value; + return this; + case "event": + Event = (List)value; + return this; + case "section": + Section = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/ConceptMap.cs b/src/Hl7.Fhir.STU3/Model/Generated/ConceptMap.cs index 50d0e5b7f2..55df6de544 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/ConceptMap.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/ConceptMap.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -440,6 +440,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "source": + SourceElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "sourceVersion": + SourceVersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "target": + TargetElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "targetVersion": + TargetVersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "element": + Element = (List)value; + return this; + case "unmapped": + Unmapped = (Hl7.Fhir.Model.ConceptMap.UnmappedComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -638,6 +666,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + CodeElement = (Hl7.Fhir.Model.Code)value; + return this; + case "display": + DisplayElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "target": + Target = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -935,6 +982,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + CodeElement = (Hl7.Fhir.Model.Code)value; + return this; + case "display": + DisplayElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "equivalence": + EquivalenceElement = (Code)value; + return this; + case "comment": + CommentElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "dependsOn": + DependsOn = (List)value; + return this; + case "product": + Product = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1190,6 +1265,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "property": + PropertyElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "system": + SystemElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "code": + CodeElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "display": + DisplayElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1445,6 +1542,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "mode": + ModeElement = (Code)value; + return this; + case "code": + CodeElement = (Hl7.Fhir.Model.Code)value; + return this; + case "display": + DisplayElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2115,6 +2234,70 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "source": + Source = (Hl7.Fhir.Model.DataType)value; + return this; + case "target": + Target = (Hl7.Fhir.Model.DataType)value; + return this; + case "group": + Group = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/Condition.cs b/src/Hl7.Fhir.STU3/Model/Generated/Condition.cs index 4d65f95cd4..9868742ed1 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/Condition.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/Condition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -275,6 +275,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "summary": + Summary = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "assessment": + Assessment = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -416,6 +432,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (List)value; + return this; + case "detail": + Detail = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -908,6 +940,64 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "clinicalStatus": + ClinicalStatusElement = (Code)value; + return this; + case "verificationStatus": + VerificationStatusElement = (Code)value; + return this; + case "category": + Category = (List)value; + return this; + case "severity": + Severity = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "bodySite": + BodySite = (List)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "context": + Context = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "onset": + Onset = (Hl7.Fhir.Model.DataType)value; + return this; + case "abatement": + Abatement = (Hl7.Fhir.Model.DataType)value; + return this; + case "assertedDate": + AssertedDateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "asserter": + Asserter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "stage": + Stage = (Hl7.Fhir.Model.Condition.StageComponent)value; + return this; + case "evidence": + Evidence = (List)value; + return this; + case "note": + Note = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/Consent.cs b/src/Hl7.Fhir.STU3/Model/Generated/Consent.cs index 7bb906e110..08da0b2304 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/Consent.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/Consent.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -293,6 +293,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "role": + Role = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "reference": + Reference = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -464,6 +480,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "authority": + AuthorityElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "uri": + UriElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -623,6 +655,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "meaning": + MeaningElement = (Code)value; + return this; + case "reference": + Reference = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -959,6 +1007,46 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "actor": + Actor = (List)value; + return this; + case "action": + Action = (List)value; + return this; + case "securityLabel": + SecurityLabel = (List)value; + return this; + case "purpose": + Purpose = (List)value; + return this; + case "class": + Class = (List)value; + return this; + case "code": + Code = (List)value; + return this; + case "dataPeriod": + DataPeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "data": + Data = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1107,6 +1195,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "role": + Role = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "reference": + Reference = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1266,6 +1370,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "meaning": + MeaningElement = (Code)value; + return this; + case "reference": + Reference = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1803,6 +1923,70 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "category": + Category = (List)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "dateTime": + DateTimeElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "consentingParty": + ConsentingParty = (List)value; + return this; + case "actor": + Actor = (List)value; + return this; + case "action": + Action = (List)value; + return this; + case "organization": + Organization = (List)value; + return this; + case "source": + Source = (Hl7.Fhir.Model.DataType)value; + return this; + case "policy": + Policy = (List)value; + return this; + case "policyRule": + PolicyRuleElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "securityLabel": + SecurityLabel = (List)value; + return this; + case "purpose": + Purpose = (List)value; + return this; + case "dataPeriod": + DataPeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "data": + Data = (List)value; + return this; + case "except": + Except = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/Contract.cs b/src/Hl7.Fhir.STU3/Model/Generated/Contract.cs index af39744bf4..ba06730bf8 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/Contract.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/Contract.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -292,6 +292,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "actor": + Actor = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "role": + Role = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -456,6 +472,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.Coding)value; + return this; + case "party": + Party = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "signature": + Signature = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -772,6 +807,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "entity": + Entity = (Hl7.Fhir.Model.DataType)value; + return this; + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "effectiveTime": + EffectiveTimeElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "unitPrice": + UnitPrice = (Hl7.Fhir.Model.Money)value; + return this; + case "factor": + FactorElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "points": + PointsElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "net": + Net = (Hl7.Fhir.Model.Money)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1194,6 +1263,55 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "issued": + IssuedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "applies": + Applies = (Hl7.Fhir.Model.Period)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subType": + SubType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "topic": + Topic = (List)value; + return this; + case "action": + Action = (List)value; + return this; + case "actionReason": + ActionReason = (List)value; + return this; + case "securityLabel": + SecurityLabel = (List)value; + return this; + case "agent": + Agent = (List)value; + return this; + case "text": + TextElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "valuedItem": + ValuedItem = (List)value; + return this; + case "group": + Group = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1347,6 +1465,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "actor": + Actor = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "role": + Role = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1665,6 +1799,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "entity": + Entity = (Hl7.Fhir.Model.DataType)value; + return this; + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "effectiveTime": + EffectiveTimeElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "unitPrice": + UnitPrice = (Hl7.Fhir.Model.Money)value; + return this; + case "factor": + FactorElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "points": + PointsElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "net": + Net = (Hl7.Fhir.Model.Money)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1789,6 +1957,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "content": + Content = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1906,6 +2087,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "content": + Content = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2023,6 +2217,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "content": + Content = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2654,6 +2861,85 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "issued": + IssuedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "applies": + Applies = (Hl7.Fhir.Model.Period)value; + return this; + case "subject": + Subject = (List)value; + return this; + case "topic": + Topic = (List)value; + return this; + case "authority": + Authority = (List)value; + return this; + case "domain": + Domain = (List)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subType": + SubType = (List)value; + return this; + case "action": + Action = (List)value; + return this; + case "actionReason": + ActionReason = (List)value; + return this; + case "decisionType": + DecisionType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "contentDerivative": + ContentDerivative = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "securityLabel": + SecurityLabel = (List)value; + return this; + case "agent": + Agent = (List)value; + return this; + case "signer": + Signer = (List)value; + return this; + case "valuedItem": + ValuedItem = (List)value; + return this; + case "term": + Term = (List)value; + return this; + case "binding": + Binding = (Hl7.Fhir.Model.DataType)value; + return this; + case "friendly": + Friendly = (List)value; + return this; + case "legal": + Legal = (List)value; + return this; + case "rule": + Rule = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/Contributor.cs b/src/Hl7.Fhir.STU3/Model/Generated/Contributor.cs index 4fc97cebbf..d7f7fc6094 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/Contributor.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/Contributor.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -264,6 +264,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/Count.cs b/src/Hl7.Fhir.STU3/Model/Generated/Count.cs index 439b17501e..4b7d7b6fbe 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/Count.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/Count.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/Coverage.cs b/src/Hl7.Fhir.STU3/Model/Generated/Coverage.cs index 6289d98981..77d3ca22dc 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/Coverage.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/Coverage.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -611,6 +611,52 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "group": + GroupElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "groupDisplay": + GroupDisplayElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "subGroup": + SubGroupElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "subGroupDisplay": + SubGroupDisplayElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "plan": + PlanElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "planDisplay": + PlanDisplayElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "subPlan": + SubPlanElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "subPlanDisplay": + SubPlanDisplayElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "class": + ClassElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "classDisplay": + ClassDisplayElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "subClass": + SubClassElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "subClassDisplay": + SubClassDisplayElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1160,6 +1206,64 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "policyHolder": + PolicyHolder = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "subscriber": + Subscriber = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "subscriberId": + SubscriberIdElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "beneficiary": + Beneficiary = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "relationship": + Relationship = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "payor": + Payor = (List)value; + return this; + case "grouping": + Grouping = (Hl7.Fhir.Model.Coverage.GroupComponent)value; + return this; + case "dependent": + DependentElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "sequence": + SequenceElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "order": + OrderElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "network": + NetworkElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contract": + Contract = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/DataElement.cs b/src/Hl7.Fhir.STU3/Model/Generated/DataElement.cs index f5bdf8ea52..f3d8c177eb 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/DataElement.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/DataElement.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -347,6 +347,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identity": + IdentityElement = (Hl7.Fhir.Model.Id)value; + return this; + case "uri": + UriElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "comment": + CommentElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -955,6 +977,64 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "stringency": + StringencyElement = (Code)value; + return this; + case "mapping": + Mapping = (List)value; + return this; + case "element": + Element = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/DataRequirement.cs b/src/Hl7.Fhir.STU3/Model/Generated/DataRequirement.cs index cc47f3157f..c943cc5bd7 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/DataRequirement.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/DataRequirement.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -291,6 +291,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "path": + PathElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "valueSet": + ValueSet = (Hl7.Fhir.Model.DataType)value; + return this; + case "valueCode": + ValueCodeElement = (List)value; + return this; + case "valueCoding": + ValueCoding = (List)value; + return this; + case "valueCodeableConcept": + ValueCodeableConcept = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -450,6 +475,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "path": + PathElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -692,6 +733,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "profile": + ProfileElement = (List)value; + return this; + case "mustSupport": + MustSupportElement = (List)value; + return this; + case "codeFilter": + CodeFilter = (List)value; + return this; + case "dateFilter": + DateFilter = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/DetectedIssue.cs b/src/Hl7.Fhir.STU3/Model/Generated/DetectedIssue.cs index a8b9fec4fe..d00c45524b 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/DetectedIssue.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/DetectedIssue.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -256,6 +256,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "action": + Action = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "author": + Author = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -670,6 +689,49 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "severity": + SeverityElement = (Code)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "author": + Author = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "implicated": + Implicated = (List)value; + return this; + case "detail": + DetailElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "reference": + ReferenceElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "mitigation": + Mitigation = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/Device.cs b/src/Hl7.Fhir.STU3/Model/Generated/Device.cs index 6c9067db95..6d87622278 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/Device.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/Device.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -499,6 +499,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "deviceIdentifier": + DeviceIdentifierElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "jurisdiction": + JurisdictionElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "carrierHRF": + CarrierHRFElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "carrierAIDC": + CarrierAIDCElement = (Hl7.Fhir.Model.Base64Binary)value; + return this; + case "issuer": + IssuerElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "entryType": + EntryTypeElement = (Code)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1097,6 +1128,67 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "udi": + Udi = (Hl7.Fhir.Model.Device.UdiComponent)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "lotNumber": + LotNumberElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "manufacturer": + ManufacturerElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "manufactureDate": + ManufactureDateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "expirationDate": + ExpirationDateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "model": + ModelElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "owner": + Owner = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "location": + Location = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "note": + Note = (List)value; + return this; + case "safety": + Safety = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/DeviceComponent.cs b/src/Hl7.Fhir.STU3/Model/Generated/DeviceComponent.cs index 08055b899d..3765cdce83 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/DeviceComponent.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/DeviceComponent.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -302,6 +302,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "specType": + SpecType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "componentId": + ComponentId = (Hl7.Fhir.Model.Identifier)value; + return this; + case "productionSpec": + ProductionSpecElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -641,6 +660,46 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "lastSystemChange": + LastSystemChangeElement = (Hl7.Fhir.Model.Instant)value; + return this; + case "source": + Source = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "parent": + Parent = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "operationalStatus": + OperationalStatus = (List)value; + return this; + case "parameterGroup": + ParameterGroup = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "measurementPrinciple": + MeasurementPrincipleElement = (Code)value; + return this; + case "productionSpecification": + ProductionSpecification = (List)value; + return this; + case "languageCode": + LanguageCode = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/DeviceMetric.cs b/src/Hl7.Fhir.STU3/Model/Generated/DeviceMetric.cs index 3357db8e2c..a92c939785 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/DeviceMetric.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/DeviceMetric.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -456,6 +456,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "state": + StateElement = (Code)value; + return this; + case "time": + TimeElement = (Hl7.Fhir.Model.Instant)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -815,6 +834,46 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "unit": + Unit = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "source": + Source = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "parent": + Parent = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "operationalStatus": + OperationalStatusElement = (Code)value; + return this; + case "color": + ColorElement = (Code)value; + return this; + case "category": + CategoryElement = (Code)value; + return this; + case "measurementPeriod": + MeasurementPeriod = (Hl7.Fhir.Model.Timing)value; + return this; + case "calibration": + Calibration = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/DeviceRequest.cs b/src/Hl7.Fhir.STU3/Model/Generated/DeviceRequest.cs index dc637de4d3..0dc60f05e1 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/DeviceRequest.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/DeviceRequest.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -190,6 +190,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "agent": + Agent = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "onBehalfOf": + OnBehalfOf = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -806,6 +822,79 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "definition": + Definition = (List)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "priorRequest": + PriorRequest = (List)value; + return this; + case "groupIdentifier": + GroupIdentifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "intent": + Intent = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "priority": + PriorityElement = (Code)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.DataType)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "context": + Context = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "occurrence": + Occurrence = (Hl7.Fhir.Model.DataType)value; + return this; + case "authoredOn": + AuthoredOnElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "requester": + Requester = (Hl7.Fhir.Model.DeviceRequest.RequesterComponent)value; + return this; + case "performerType": + PerformerType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "performer": + Performer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "reasonReference": + ReasonReference = (List)value; + return this; + case "supportingInfo": + SupportingInfo = (List)value; + return this; + case "note": + Note = (List)value; + return this; + case "relevantHistory": + RelevantHistory = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/DeviceUseStatement.cs b/src/Hl7.Fhir.STU3/Model/Generated/DeviceUseStatement.cs index 7b55d00f0f..8113928fb9 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/DeviceUseStatement.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/DeviceUseStatement.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -458,6 +458,49 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "whenUsed": + WhenUsed = (Hl7.Fhir.Model.Period)value; + return this; + case "timing": + Timing = (Hl7.Fhir.Model.DataType)value; + return this; + case "recordedOn": + RecordedOnElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "source": + Source = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "device": + Device = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "indication": + Indication = (List)value; + return this; + case "bodySite": + BodySite = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "note": + Note = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/DiagnosticReport.cs b/src/Hl7.Fhir.STU3/Model/Generated/DiagnosticReport.cs index 431ae3bc33..3d1f341a45 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/DiagnosticReport.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/DiagnosticReport.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -260,6 +260,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "role": + Role = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "actor": + Actor = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -416,6 +432,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "comment": + CommentElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "link": + Link = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -935,6 +967,67 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "context": + Context = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "effective": + Effective = (Hl7.Fhir.Model.DataType)value; + return this; + case "issued": + IssuedElement = (Hl7.Fhir.Model.Instant)value; + return this; + case "performer": + Performer = (List)value; + return this; + case "specimen": + Specimen = (List)value; + return this; + case "result": + Result = (List)value; + return this; + case "imagingStudy": + ImagingStudy = (List)value; + return this; + case "image": + Image = (List)value; + return this; + case "conclusion": + ConclusionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "codedDiagnosis": + CodedDiagnosis = (List)value; + return this; + case "presentedForm": + PresentedForm = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/Distance.cs b/src/Hl7.Fhir.STU3/Model/Generated/Distance.cs index e889191c49..78764bc0bf 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/Distance.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/Distance.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/DocumentManifest.cs b/src/Hl7.Fhir.STU3/Model/Generated/DocumentManifest.cs index 5bac346e89..c59a64d940 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/DocumentManifest.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/DocumentManifest.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -168,6 +168,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "p": + P = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -305,6 +318,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "ref": + Ref = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -722,6 +751,52 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "masterIdentifier": + MasterIdentifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "created": + CreatedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "author": + Author = (List)value; + return this; + case "recipient": + Recipient = (List)value; + return this; + case "source": + SourceElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "content": + Content = (List)value; + return this; + case "related": + Related = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/DocumentReference.cs b/src/Hl7.Fhir.STU3/Model/Generated/DocumentReference.cs index ef46433132..810bdce2f2 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/DocumentReference.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/DocumentReference.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -210,6 +210,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + CodeElement = (Code)value; + return this; + case "target": + Target = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -347,6 +363,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "attachment": + Attachment = (Hl7.Fhir.Model.Attachment)value; + return this; + case "format": + Format = (Hl7.Fhir.Model.Coding)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -597,6 +629,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "event": + Event = (List)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "facilityType": + FacilityType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "practiceSetting": + PracticeSetting = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "sourcePatientInfo": + SourcePatientInfo = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "related": + Related = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -740,6 +803,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "ref": + Ref = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1288,6 +1367,67 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "masterIdentifier": + MasterIdentifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "docStatus": + DocStatusElement = (Code)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "class": + Class = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "created": + CreatedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "indexed": + IndexedElement = (Hl7.Fhir.Model.Instant)value; + return this; + case "author": + Author = (List)value; + return this; + case "authenticator": + Authenticator = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "custodian": + Custodian = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "relatesTo": + RelatesTo = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "securityLabel": + SecurityLabel = (List)value; + return this; + case "content": + Content = (List)value; + return this; + case "context": + Context = (Hl7.Fhir.Model.DocumentReference.ContextComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/Dosage.cs b/src/Hl7.Fhir.STU3/Model/Generated/Dosage.cs index 59b3c74cf5..d6f1082dba 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/Dosage.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/Dosage.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -486,6 +486,58 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "text": + TextElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "additionalInstruction": + AdditionalInstruction = (List)value; + return this; + case "patientInstruction": + PatientInstructionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "timing": + Timing = (Hl7.Fhir.Model.Timing)value; + return this; + case "asNeeded": + AsNeeded = (Hl7.Fhir.Model.DataType)value; + return this; + case "site": + Site = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "route": + Route = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "method": + Method = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "dose": + Dose = (Hl7.Fhir.Model.DataType)value; + return this; + case "maxDosePerPeriod": + MaxDosePerPeriod = (Hl7.Fhir.Model.Ratio)value; + return this; + case "maxDosePerAdministration": + MaxDosePerAdministration = (Hl7.Fhir.Model.Quantity)value; + return this; + case "maxDosePerLifetime": + MaxDosePerLifetime = (Hl7.Fhir.Model.Quantity)value; + return this; + case "rate": + Rate = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/Duration.cs b/src/Hl7.Fhir.STU3/Model/Generated/Duration.cs index ca90d7e8a0..8eac517e6f 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/Duration.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/Duration.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/ElementDefinition.cs b/src/Hl7.Fhir.STU3/Model/Generated/ElementDefinition.cs index 6534536654..900f858215 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/ElementDefinition.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/ElementDefinition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -472,6 +472,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "discriminator": + Discriminator = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "ordered": + OrderedElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "rules": + RulesElement = (Code)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -650,6 +672,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "path": + PathElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -864,6 +902,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "path": + PathElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "min": + MinElement = (Hl7.Fhir.Model.UnsignedInt)value; + return this; + case "max": + MaxElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1161,6 +1218,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + CodeElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "profile": + ProfileElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "targetProfile": + TargetProfileElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "aggregation": + AggregationElement = (List>)value; + return this; + case "versioning": + VersioningElement = (Code)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1322,6 +1404,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "label": + LabelElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1698,6 +1796,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "key": + KeyElement = (Hl7.Fhir.Model.Id)value; + return this; + case "requirements": + RequirementsElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "severity": + SeverityElement = (Code)value; + return this; + case "human": + HumanElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "expression": + ExpressionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "xpath": + XpathElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "source": + SourceElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1904,6 +2033,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "strength": + StrengthElement = (Code)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "valueSet": + ValueSet = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2160,6 +2308,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identity": + IdentityElement = (Hl7.Fhir.Model.Id)value; + return this; + case "language": + LanguageElement = (Hl7.Fhir.Model.Code)value; + return this; + case "map": + MapElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "comment": + CommentElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3274,6 +3444,112 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "path": + PathElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "representation": + RepresentationElement = (List>)value; + return this; + case "sliceName": + SliceNameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "label": + LabelElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "code": + Code = (List)value; + return this; + case "slicing": + Slicing = (Hl7.Fhir.Model.ElementDefinition.SlicingComponent)value; + return this; + case "short": + ShortElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "definition": + DefinitionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "comment": + CommentElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "requirements": + RequirementsElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "alias": + AliasElement = (List)value; + return this; + case "min": + MinElement = (Hl7.Fhir.Model.UnsignedInt)value; + return this; + case "max": + MaxElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "base": + Base = (Hl7.Fhir.Model.ElementDefinition.BaseComponent)value; + return this; + case "contentReference": + ContentReferenceElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "type": + Type = (List)value; + return this; + case "defaultValue": + DefaultValue = (Hl7.Fhir.Model.DataType)value; + return this; + case "meaningWhenMissing": + MeaningWhenMissingElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "orderMeaning": + OrderMeaningElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "fixed": + Fixed = (Hl7.Fhir.Model.DataType)value; + return this; + case "pattern": + Pattern = (Hl7.Fhir.Model.DataType)value; + return this; + case "example": + Example = (List)value; + return this; + case "minValue": + MinValue = (Hl7.Fhir.Model.DataType)value; + return this; + case "maxValue": + MaxValue = (Hl7.Fhir.Model.DataType)value; + return this; + case "maxLength": + MaxLengthElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "condition": + ConditionElement = (List)value; + return this; + case "constraint": + Constraint = (List)value; + return this; + case "mustSupport": + MustSupportElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "isModifier": + IsModifierElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "isSummary": + IsSummaryElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "binding": + Binding = (Hl7.Fhir.Model.ElementDefinition.ElementDefinitionBindingComponent)value; + return this; + case "mapping": + Mapping = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/EligibilityRequest.cs b/src/Hl7.Fhir.STU3/Model/Generated/EligibilityRequest.cs index ad30b47ce3..fe35abec7a 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/EligibilityRequest.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/EligibilityRequest.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -519,6 +519,61 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "priority": + Priority = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "serviced": + Serviced = (Hl7.Fhir.Model.DataType)value; + return this; + case "created": + CreatedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "enterer": + Enterer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "provider": + Provider = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "organization": + Organization = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "insurer": + Insurer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "facility": + Facility = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "coverage": + Coverage = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "businessArrangement": + BusinessArrangementElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "benefitCategory": + BenefitCategory = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "benefitSubCategory": + BenefitSubCategory = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/EligibilityResponse.cs b/src/Hl7.Fhir.STU3/Model/Generated/EligibilityResponse.cs index f883ac1d3a..c12d5d9c3a 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/EligibilityResponse.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/EligibilityResponse.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -211,6 +211,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "coverage": + Coverage = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "contract": + Contract = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "benefitBalance": + BenefitBalance = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -555,6 +574,43 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subCategory": + SubCategory = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "excluded": + ExcludedElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "network": + Network = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "unit": + Unit = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "term": + Term = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "financial": + Financial = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -724,6 +780,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "allowed": + Allowed = (Hl7.Fhir.Model.DataType)value; + return this; + case "used": + Used = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -841,6 +916,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1278,6 +1366,55 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "created": + CreatedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "requestProvider": + RequestProvider = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "requestOrganization": + RequestOrganization = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "request": + Request = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "outcome": + Outcome = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "disposition": + DispositionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "insurer": + Insurer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "inforce": + InforceElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "insurance": + Insurance = (List)value; + return this; + case "form": + Form = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "error": + Error = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/Encounter.cs b/src/Hl7.Fhir.STU3/Model/Generated/Encounter.cs index 5c5598f53d..39c1927ecd 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/Encounter.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/Encounter.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -308,6 +308,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "status": + StatusElement = (Code)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -447,6 +463,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "class": + Class = (Hl7.Fhir.Model.Coding)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -607,6 +639,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (List)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "individual": + Individual = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -783,6 +834,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "condition": + Condition = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "role": + Role = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "rank": + RankElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1080,6 +1150,43 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "preAdmissionIdentifier": + PreAdmissionIdentifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "origin": + Origin = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "admitSource": + AdmitSource = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "reAdmission": + ReAdmission = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "dietPreference": + DietPreference = (List)value; + return this; + case "specialCourtesy": + SpecialCourtesy = (List)value; + return this; + case "specialArrangement": + SpecialArrangement = (List)value; + return this; + case "destination": + Destination = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "dischargeDisposition": + DischargeDisposition = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1267,6 +1374,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "location": + Location = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1837,6 +1963,79 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "statusHistory": + StatusHistory = (List)value; + return this; + case "class": + Class = (Hl7.Fhir.Model.Coding)value; + return this; + case "classHistory": + ClassHistory = (List)value; + return this; + case "type": + Type = (List)value; + return this; + case "priority": + Priority = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "episodeOfCare": + EpisodeOfCare = (List)value; + return this; + case "incomingReferral": + IncomingReferral = (List)value; + return this; + case "participant": + Participant = (List)value; + return this; + case "appointment": + Appointment = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "length": + Length = (Hl7.Fhir.Model.Duration)value; + return this; + case "reason": + Reason = (List)value; + return this; + case "diagnosis": + Diagnosis = (List)value; + return this; + case "account": + Account = (List)value; + return this; + case "hospitalization": + Hospitalization = (Hl7.Fhir.Model.Encounter.HospitalizationComponent)value; + return this; + case "location": + Location = (List)value; + return this; + case "serviceProvider": + ServiceProvider = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "partOf": + PartOf = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/Endpoint.cs b/src/Hl7.Fhir.STU3/Model/Generated/Endpoint.cs index 0889a446ae..a615b1e70c 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/Endpoint.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/Endpoint.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -510,6 +510,49 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "connectionType": + ConnectionType = (Hl7.Fhir.Model.Coding)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "managingOrganization": + ManagingOrganization = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "payloadType": + PayloadType = (List)value; + return this; + case "payloadMimeType": + PayloadMimeTypeElement = (List)value; + return this; + case "address": + AddressElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "header": + HeaderElement = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/EnrollmentRequest.cs b/src/Hl7.Fhir.STU3/Model/Generated/EnrollmentRequest.cs index 1e5009787a..f008b1fecd 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/EnrollmentRequest.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/EnrollmentRequest.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -345,6 +345,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "created": + CreatedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "insurer": + Insurer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "provider": + Provider = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "organization": + Organization = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "coverage": + Coverage = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/EnrollmentResponse.cs b/src/Hl7.Fhir.STU3/Model/Generated/EnrollmentResponse.cs index ab78908370..2b8b3eb35e 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/EnrollmentResponse.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/EnrollmentResponse.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -383,6 +383,43 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "request": + Request = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "outcome": + Outcome = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "disposition": + DispositionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "created": + CreatedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "organization": + Organization = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "requestProvider": + RequestProvider = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "requestOrganization": + RequestOrganization = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/EpisodeOfCare.cs b/src/Hl7.Fhir.STU3/Model/Generated/EpisodeOfCare.cs index 3b769ff501..0e00f90009 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/EpisodeOfCare.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/EpisodeOfCare.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -259,6 +259,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "status": + StatusElement = (Code)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -434,6 +450,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "condition": + Condition = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "role": + Role = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "rank": + RankElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -807,6 +842,52 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "statusHistory": + StatusHistory = (List)value; + return this; + case "type": + Type = (List)value; + return this; + case "diagnosis": + Diagnosis = (List)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "managingOrganization": + ManagingOrganization = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "referralRequest": + ReferralRequest = (List)value; + return this; + case "careManager": + CareManager = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "team": + Team = (List)value; + return this; + case "account": + Account = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/ExpansionProfile.cs b/src/Hl7.Fhir.STU3/Model/Generated/ExpansionProfile.cs index a7ee83c49b..4d91b9a23e 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/ExpansionProfile.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/ExpansionProfile.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -293,6 +293,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "system": + SystemElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "mode": + ModeElement = (Code)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -467,6 +486,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "system": + SystemElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -602,6 +637,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "include": + Include = (Hl7.Fhir.Model.ExpansionProfile.DesignationIncludeComponent)value; + return this; + case "exclude": + Exclude = (Hl7.Fhir.Model.ExpansionProfile.DesignationExcludeComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -714,6 +765,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "designation": + Designation = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -869,6 +933,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "language": + LanguageElement = (Hl7.Fhir.Model.Code)value; + return this; + case "use": + Use = (Hl7.Fhir.Model.Coding)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -981,6 +1061,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "designation": + Designation = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1136,6 +1229,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "language": + LanguageElement = (Hl7.Fhir.Model.Code)value; + return this; + case "use": + Use = (Hl7.Fhir.Model.Coding)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1994,6 +2103,85 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "fixedVersion": + FixedVersion = (List)value; + return this; + case "excludedSystem": + ExcludedSystem = (Hl7.Fhir.Model.ExpansionProfile.ExcludedSystemComponent)value; + return this; + case "includeDesignations": + IncludeDesignationsElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "designation": + Designation = (Hl7.Fhir.Model.ExpansionProfile.DesignationComponent)value; + return this; + case "includeDefinition": + IncludeDefinitionElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "activeOnly": + ActiveOnlyElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "excludeNested": + ExcludeNestedElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "excludeNotForUI": + ExcludeNotForUIElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "excludePostCoordinated": + ExcludePostCoordinatedElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "displayLanguage": + DisplayLanguageElement = (Hl7.Fhir.Model.Code)value; + return this; + case "limitedExpansion": + LimitedExpansionElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/ExplanationOfBenefit.cs b/src/Hl7.Fhir.STU3/Model/Generated/ExplanationOfBenefit.cs index d4674b78ba..de2863473d 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/ExplanationOfBenefit.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/ExplanationOfBenefit.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -135,14 +135,6 @@ public enum PayeeResourceType [FhirEnumeration("ActInvoiceGroupCode", "http://hl7.org/fhir/ValueSet/v3-ActInvoiceGroupCode", "http://hl7.org/fhir/v3/ActCode")] public enum ActInvoiceGroupCode { - /// - /// Type of invoice element that is used to assist in describing an Invoice that is either submitted for adjudication or for which is returned on adjudication results. - /// Invoice elements of this type signify a grouping of one or more children (detail) invoice elements. They do not have intrinsic costing associated with them, but merely reflect the sum of all costing for it's immediate children invoice elements. - /// The domain is only specified for an intermediate invoice element group (non-root or non-top level) for an Invoice. - /// (system: http://hl7.org/fhir/v3/ActCode) - /// - [EnumLiteral("_ActInvoiceInterGroupCode"), Description("ActInvoiceInterGroupCode")] - ActInvoiceInterGroupCode, /// /// A grouping of invoice element groups and details including the ones specifying the compound ingredients being invoiced. It may also contain generic detail items such as markup. /// (system: http://hl7.org/fhir/v3/ActCode) @@ -186,14 +178,6 @@ public enum ActInvoiceGroupCode [EnumLiteral("PRDING"), Description("product invoice group")] PRDING, /// - /// Type of invoice element that is used to assist in describing an Invoice that is either submitted for adjudication or for which is returned on adjudication results. - /// Invoice elements of this type signify a grouping of one or more children (detail) invoice elements. They do not have intrinsic costing associated with them, but merely reflect the sum of all costing for it's immediate children invoice elements. - /// Codes from this domain reflect the type of Invoice such as Pharmacy Dispense, Clinical Service and Clinical Product. The domain is only specified for the root (top level) invoice element group for an Invoice. - /// (system: http://hl7.org/fhir/v3/ActCode) - /// - [EnumLiteral("_ActInvoiceRootGroupCode"), Description("ActInvoiceRootGroupCode")] - ActInvoiceRootGroupCode, - /// /// Clinical product invoice where the Invoice Grouping contains one or more billable item and is supported by clinical product(s). /// For example, a crutch or a wheelchair. /// (system: http://hl7.org/fhir/v3/ActCode) @@ -416,6 +400,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "claim": + Claim = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "relationship": + Relationship = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "reference": + Reference = (Hl7.Fhir.Model.Identifier)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -577,6 +580,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "resourceType": + ResourceType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "party": + Party = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -825,6 +847,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "timing": + Timing = (Hl7.Fhir.Model.DataType)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + case "reason": + Reason = (Hl7.Fhir.Model.Coding)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1069,6 +1119,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "provider": + Provider = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "responsible": + ResponsibleElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "role": + Role = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "qualification": + Qualification = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1276,6 +1351,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "diagnosis": + Diagnosis = (Hl7.Fhir.Model.DataType)value; + return this; + case "type": + Type = (List)value; + return this; + case "packageCode": + PackageCode = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1476,6 +1573,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "procedure": + Procedure = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1633,6 +1749,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "coverage": + Coverage = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "preAuthRef": + PreAuthRefElement = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1811,6 +1943,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "date": + DateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "location": + Location = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2544,6 +2695,85 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "careTeamLinkId": + CareTeamLinkIdElement = (List)value; + return this; + case "diagnosisLinkId": + DiagnosisLinkIdElement = (List)value; + return this; + case "procedureLinkId": + ProcedureLinkIdElement = (List)value; + return this; + case "informationLinkId": + InformationLinkIdElement = (List)value; + return this; + case "revenue": + Revenue = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "service": + Service = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "modifier": + Modifier = (List)value; + return this; + case "programCode": + ProgramCode = (List)value; + return this; + case "serviced": + Serviced = (Hl7.Fhir.Model.DataType)value; + return this; + case "location": + Location = (Hl7.Fhir.Model.DataType)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "unitPrice": + UnitPrice = (Hl7.Fhir.Model.Money)value; + return this; + case "factor": + FactorElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "net": + Net = (Hl7.Fhir.Model.Money)value; + return this; + case "udi": + Udi = (List)value; + return this; + case "bodySite": + BodySite = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subSite": + SubSite = (List)value; + return this; + case "encounter": + Encounter = (List)value; + return this; + case "noteNumber": + NoteNumberElement = (List)value; + return this; + case "adjudication": + Adjudication = (List)value; + return this; + case "detail": + Detail = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2763,6 +2993,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "reason": + Reason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "amount": + Amount = (Hl7.Fhir.Model.Money)value; + return this; + case "value": + ValueElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3243,6 +3495,61 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "revenue": + Revenue = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "service": + Service = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "modifier": + Modifier = (List)value; + return this; + case "programCode": + ProgramCode = (List)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "unitPrice": + UnitPrice = (Hl7.Fhir.Model.Money)value; + return this; + case "factor": + FactorElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "net": + Net = (Hl7.Fhir.Model.Money)value; + return this; + case "udi": + Udi = (List)value; + return this; + case "noteNumber": + NoteNumberElement = (List)value; + return this; + case "adjudication": + Adjudication = (List)value; + return this; + case "subDetail": + SubDetail = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3712,6 +4019,58 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequence": + SequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "revenue": + Revenue = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "service": + Service = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "modifier": + Modifier = (List)value; + return this; + case "programCode": + ProgramCode = (List)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "unitPrice": + UnitPrice = (Hl7.Fhir.Model.Money)value; + return this; + case "factor": + FactorElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "net": + Net = (Hl7.Fhir.Model.Money)value; + return this; + case "udi": + Udi = (List)value; + return this; + case "noteNumber": + NoteNumberElement = (List)value; + return this; + case "adjudication": + Adjudication = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -4051,6 +4410,43 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequenceLinkId": + SequenceLinkIdElement = (List)value; + return this; + case "revenue": + Revenue = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "service": + Service = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "modifier": + Modifier = (List)value; + return this; + case "fee": + Fee = (Hl7.Fhir.Model.Money)value; + return this; + case "noteNumber": + NoteNumberElement = (List)value; + return this; + case "adjudication": + Adjudication = (List)value; + return this; + case "detail": + Detail = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -4323,6 +4719,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "revenue": + Revenue = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "service": + Service = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "modifier": + Modifier = (List)value; + return this; + case "fee": + Fee = (Hl7.Fhir.Model.Money)value; + return this; + case "noteNumber": + NoteNumberElement = (List)value; + return this; + case "adjudication": + Adjudication = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -4567,6 +4994,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "adjustment": + Adjustment = (Hl7.Fhir.Model.Money)value; + return this; + case "adjustmentReason": + AdjustmentReason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "amount": + Amount = (Hl7.Fhir.Model.Money)value; + return this; + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -4786,6 +5241,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "number": + NumberElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "text": + TextElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "language": + Language = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -5128,6 +5605,43 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subCategory": + SubCategory = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "excluded": + ExcludedElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "network": + Network = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "unit": + Unit = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "term": + Term = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "financial": + Financial = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -5297,6 +5811,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "allowed": + Allowed = (Hl7.Fhir.Model.DataType)value; + return this; + case "used": + Used = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -6306,6 +6839,133 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subType": + SubType = (List)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "billablePeriod": + BillablePeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "created": + CreatedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "enterer": + Enterer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "insurer": + Insurer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "provider": + Provider = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "organization": + Organization = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "referral": + Referral = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "facility": + Facility = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "claim": + Claim = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "claimResponse": + ClaimResponse = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "outcome": + Outcome = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "disposition": + DispositionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "related": + Related = (List)value; + return this; + case "prescription": + Prescription = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "originalPrescription": + OriginalPrescription = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "payee": + Payee = (Hl7.Fhir.Model.ExplanationOfBenefit.PayeeComponent)value; + return this; + case "information": + Information = (List)value; + return this; + case "careTeam": + CareTeam = (List)value; + return this; + case "diagnosis": + Diagnosis = (List)value; + return this; + case "procedure": + Procedure = (List)value; + return this; + case "precedence": + PrecedenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "insurance": + Insurance = (Hl7.Fhir.Model.ExplanationOfBenefit.InsuranceComponent)value; + return this; + case "accident": + Accident = (Hl7.Fhir.Model.ExplanationOfBenefit.AccidentComponent)value; + return this; + case "employmentImpacted": + EmploymentImpacted = (Hl7.Fhir.Model.Period)value; + return this; + case "hospitalization": + Hospitalization = (Hl7.Fhir.Model.Period)value; + return this; + case "item": + Item = (List)value; + return this; + case "addItem": + AddItem = (List)value; + return this; + case "totalCost": + TotalCost = (Hl7.Fhir.Model.Money)value; + return this; + case "unallocDeductable": + UnallocDeductable = (Hl7.Fhir.Model.Money)value; + return this; + case "totalBenefit": + TotalBenefit = (Hl7.Fhir.Model.Money)value; + return this; + case "payment": + Payment = (Hl7.Fhir.Model.ExplanationOfBenefit.PaymentComponent)value; + return this; + case "form": + Form = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "processNote": + ProcessNote = (List)value; + return this; + case "benefitBalance": + BenefitBalance = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/FamilyMemberHistory.cs b/src/Hl7.Fhir.STU3/Model/Generated/FamilyMemberHistory.cs index 168730f524..c62738ac35 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/FamilyMemberHistory.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/FamilyMemberHistory.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -268,6 +268,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "outcome": + Outcome = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "onset": + Onset = (Hl7.Fhir.Model.DataType)value; + return this; + case "note": + Note = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -862,6 +884,70 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "definition": + Definition = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "notDone": + NotDoneElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "notDoneReason": + NotDoneReason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "relationship": + Relationship = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "gender": + GenderElement = (Code)value; + return this; + case "born": + Born = (Hl7.Fhir.Model.DataType)value; + return this; + case "age": + Age = (Hl7.Fhir.Model.DataType)value; + return this; + case "estimatedAge": + EstimatedAgeElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "deceased": + Deceased = (Hl7.Fhir.Model.DataType)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "reasonReference": + ReasonReference = (List)value; + return this; + case "note": + Note = (List)value; + return this; + case "condition": + Condition = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/Flag.cs b/src/Hl7.Fhir.STU3/Model/Generated/Flag.cs index 44b84cf942..8027e2a970 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/Flag.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/Flag.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -356,6 +356,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "author": + Author = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/Goal.cs b/src/Hl7.Fhir.STU3/Model/Generated/Goal.cs index aff6b383d8..34cfaf74e9 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/Goal.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/Goal.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -301,6 +301,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "measure": + Measure = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "detail": + Detail = (Hl7.Fhir.Model.DataType)value; + return this; + case "due": + Due = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -774,6 +793,61 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "category": + Category = (List)value; + return this; + case "priority": + Priority = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "description": + Description = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "start": + Start = (Hl7.Fhir.Model.DataType)value; + return this; + case "target": + Target = (Hl7.Fhir.Model.Goal.TargetComponent)value; + return this; + case "statusDate": + StatusDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "statusReason": + StatusReasonElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "expressedBy": + ExpressedBy = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "addresses": + Addresses = (List)value; + return this; + case "note": + Note = (List)value; + return this; + case "outcomeCode": + OutcomeCode = (List)value; + return this; + case "outcomeReference": + OutcomeReference = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/GraphDefinition.cs b/src/Hl7.Fhir.STU3/Model/Generated/GraphDefinition.cs index 75274b442c..0ff21c86e8 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/GraphDefinition.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/GraphDefinition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -392,6 +392,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "path": + PathElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "sliceName": + SliceNameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "min": + MinElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "max": + MaxElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "target": + Target = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -611,6 +639,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "profile": + ProfileElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "compartment": + Compartment = (List)value; + return this; + case "link": + Link = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -865,6 +915,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + CodeElement = (Code)value; + return this; + case "rule": + RuleElement = (Code)value; + return this; + case "expression": + ExpressionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1468,6 +1540,61 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "start": + StartElement = (Code)value; + return this; + case "profile": + ProfileElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "link": + Link = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/Group.cs b/src/Hl7.Fhir.STU3/Model/Generated/Group.cs index 34cd333d78..1127a4cbac 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/Group.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/Group.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -299,6 +299,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + case "exclude": + ExcludeElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -478,6 +500,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "entity": + Entity = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "inactive": + InactiveElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -844,6 +885,43 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "active": + ActiveElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "type": + TypeElement = (Code)value; + return this; + case "actual": + ActualElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "quantity": + QuantityElement = (Hl7.Fhir.Model.UnsignedInt)value; + return this; + case "characteristic": + Characteristic = (List)value; + return this; + case "member": + Member = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/GuidanceResponse.cs b/src/Hl7.Fhir.STU3/Model/Generated/GuidanceResponse.cs index 902ebd4001..93e342dcaf 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/GuidanceResponse.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/GuidanceResponse.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -546,6 +546,58 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "requestId": + RequestIdElement = (Hl7.Fhir.Model.Id)value; + return this; + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "module": + Module = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "context": + Context = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "occurrenceDateTime": + OccurrenceDateTimeElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "performer": + Performer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "reason": + Reason = (Hl7.Fhir.Model.DataType)value; + return this; + case "note": + Note = (List)value; + return this; + case "evaluationMessage": + EvaluationMessage = (List)value; + return this; + case "outputParameters": + OutputParameters = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "result": + Result = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "dataRequirement": + DataRequirement = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/HealthcareService.cs b/src/Hl7.Fhir.STU3/Model/Generated/HealthcareService.cs index 1902cf6771..ae03ae0c72 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/HealthcareService.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/HealthcareService.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -300,6 +300,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "daysOfWeek": + DaysOfWeekElement = (List>)value; + return this; + case "allDay": + AllDayElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "availableStartTime": + AvailableStartTimeElement = (Hl7.Fhir.Model.Time)value; + return this; + case "availableEndTime": + AvailableEndTimeElement = (Hl7.Fhir.Model.Time)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -456,6 +478,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "during": + During = (Hl7.Fhir.Model.Period)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1210,6 +1248,88 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "active": + ActiveElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "providedBy": + ProvidedBy = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "type": + Type = (List)value; + return this; + case "specialty": + Specialty = (List)value; + return this; + case "location": + Location = (List)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "comment": + CommentElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "extraDetails": + ExtraDetailsElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "photo": + Photo = (Hl7.Fhir.Model.Attachment)value; + return this; + case "telecom": + Telecom = (List)value; + return this; + case "coverageArea": + CoverageArea = (List)value; + return this; + case "serviceProvisionCode": + ServiceProvisionCode = (List)value; + return this; + case "eligibility": + Eligibility = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "eligibilityNote": + EligibilityNoteElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "programName": + ProgramNameElement = (List)value; + return this; + case "characteristic": + Characteristic = (List)value; + return this; + case "referralMethod": + ReferralMethod = (List)value; + return this; + case "appointmentRequired": + AppointmentRequiredElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "availableTime": + AvailableTime = (List)value; + return this; + case "notAvailable": + NotAvailable = (List)value; + return this; + case "availabilityExceptions": + AvailabilityExceptionsElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "endpoint": + Endpoint = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/HumanName.cs b/src/Hl7.Fhir.STU3/Model/Generated/HumanName.cs index b5da90bc6f..de4e8f8582 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/HumanName.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/HumanName.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -439,6 +439,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "use": + UseElement = (Code)value; + return this; + case "text": + TextElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "family": + FamilyElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "given": + GivenElement = (List)value; + return this; + case "prefix": + PrefixElement = (List)value; + return this; + case "suffix": + SuffixElement = (List)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/ImagingManifest.cs b/src/Hl7.Fhir.STU3/Model/Generated/ImagingManifest.cs index fa9d75b181..13b86fb031 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/ImagingManifest.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/ImagingManifest.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -253,6 +253,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "uid": + UidElement = (Hl7.Fhir.Model.Oid)value; + return this; + case "imagingStudy": + ImagingStudy = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "endpoint": + Endpoint = (List)value; + return this; + case "series": + Series = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -435,6 +457,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "uid": + UidElement = (Hl7.Fhir.Model.Oid)value; + return this; + case "endpoint": + Endpoint = (List)value; + return this; + case "instance": + Instance = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -610,6 +651,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sopClass": + SopClassElement = (Hl7.Fhir.Model.Oid)value; + return this; + case "uid": + UidElement = (Hl7.Fhir.Model.Oid)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -856,6 +913,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "authoringTime": + AuthoringTimeElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "author": + Author = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "study": + Study = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/ImagingStudy.cs b/src/Hl7.Fhir.STU3/Model/Generated/ImagingStudy.cs index c9500bee8b..28d2116a23 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/ImagingStudy.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/ImagingStudy.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -551,6 +551,52 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "uid": + UidElement = (Hl7.Fhir.Model.Oid)value; + return this; + case "number": + NumberElement = (Hl7.Fhir.Model.UnsignedInt)value; + return this; + case "modality": + Modality = (Hl7.Fhir.Model.Coding)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "numberOfInstances": + NumberOfInstancesElement = (Hl7.Fhir.Model.UnsignedInt)value; + return this; + case "availability": + AvailabilityElement = (Code)value; + return this; + case "endpoint": + Endpoint = (List)value; + return this; + case "bodySite": + BodySite = (Hl7.Fhir.Model.Coding)value; + return this; + case "laterality": + Laterality = (Hl7.Fhir.Model.Coding)value; + return this; + case "started": + StartedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "performer": + Performer = (List)value; + return this; + case "instance": + Instance = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -812,6 +858,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "uid": + UidElement = (Hl7.Fhir.Model.Oid)value; + return this; + case "number": + NumberElement = (Hl7.Fhir.Model.UnsignedInt)value; + return this; + case "sopClass": + SopClassElement = (Hl7.Fhir.Model.Oid)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1428,6 +1496,73 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "uid": + UidElement = (Hl7.Fhir.Model.Oid)value; + return this; + case "accession": + Accession = (Hl7.Fhir.Model.Identifier)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "availability": + AvailabilityElement = (Code)value; + return this; + case "modalityList": + ModalityList = (List)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "context": + Context = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "started": + StartedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "referrer": + Referrer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "interpreter": + Interpreter = (List)value; + return this; + case "endpoint": + Endpoint = (List)value; + return this; + case "numberOfSeries": + NumberOfSeriesElement = (Hl7.Fhir.Model.UnsignedInt)value; + return this; + case "numberOfInstances": + NumberOfInstancesElement = (Hl7.Fhir.Model.UnsignedInt)value; + return this; + case "procedureReference": + ProcedureReference = (List)value; + return this; + case "procedureCode": + ProcedureCode = (List)value; + return this; + case "reason": + Reason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "series": + Series = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/Immunization.cs b/src/Hl7.Fhir.STU3/Model/Generated/Immunization.cs index 9bfb2f28cd..c376e29dcc 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/Immunization.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/Immunization.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -211,6 +211,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "role": + Role = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "actor": + Actor = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -350,6 +366,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "reason": + Reason = (List)value; + return this; + case "reasonNotGiven": + ReasonNotGiven = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -545,6 +577,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "detail": + Detail = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "reported": + ReportedElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -886,6 +937,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "doseSequence": + DoseSequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "authority": + Authority = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "series": + SeriesElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "seriesDoses": + SeriesDosesElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "targetDisease": + TargetDisease = (List)value; + return this; + case "doseStatus": + DoseStatus = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "doseStatusReason": + DoseStatusReason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1543,6 +1628,79 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "notGiven": + NotGivenElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "vaccineCode": + VaccineCode = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "primarySource": + PrimarySourceElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "reportOrigin": + ReportOrigin = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "location": + Location = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "manufacturer": + Manufacturer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "lotNumber": + LotNumberElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "expirationDate": + ExpirationDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "site": + Site = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "route": + Route = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "doseQuantity": + DoseQuantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "practitioner": + Practitioner = (List)value; + return this; + case "note": + Note = (List)value; + return this; + case "explanation": + Explanation = (Hl7.Fhir.Model.Immunization.ExplanationComponent)value; + return this; + case "reaction": + Reaction = (List)value; + return this; + case "vaccinationProtocol": + VaccinationProtocol = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/ImmunizationRecommendation.cs b/src/Hl7.Fhir.STU3/Model/Generated/ImmunizationRecommendation.cs index 3fd4269e1c..381ca3e25d 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/ImmunizationRecommendation.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/ImmunizationRecommendation.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -377,6 +377,43 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "vaccineCode": + VaccineCode = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "targetDisease": + TargetDisease = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "doseNumber": + DoseNumberElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "forecastStatus": + ForecastStatus = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "dateCriterion": + DateCriterion = (List)value; + return this; + case "protocol": + Protocol = (Hl7.Fhir.Model.ImmunizationRecommendation.ProtocolComponent)value; + return this; + case "supportingImmunization": + SupportingImmunization = (List)value; + return this; + case "supportingPatientInformation": + SupportingPatientInformation = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -540,6 +577,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "value": + ValueElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -773,6 +826,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "doseSequence": + DoseSequenceElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "authority": + Authority = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "series": + SeriesElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -921,6 +996,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "recommendation": + Recommendation = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/ImplementationGuide.cs b/src/Hl7.Fhir.STU3/Model/Generated/ImplementationGuide.cs index c618e34404..14c32c176c 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/ImplementationGuide.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/ImplementationGuide.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -305,6 +305,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "uri": + UriElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -499,6 +515,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "resource": + Resource = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -798,6 +833,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "example": + ExampleElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "acronym": + AcronymElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "source": + Source = (Hl7.Fhir.Model.DataType)value; + return this; + case "exampleFor": + ExampleFor = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -962,6 +1025,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "profile": + Profile = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1322,6 +1401,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "source": + SourceElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "kind": + KindElement = (Code)value; + return this; + case "type": + TypeElement = (List>)value; + return this; + case "package": + PackageElement = (List)value; + return this; + case "format": + FormatElement = (Hl7.Fhir.Model.Code)value; + return this; + case "page": + Page = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1992,6 +2102,70 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "fhirVersion": + FhirVersionElement = (Hl7.Fhir.Model.Id)value; + return this; + case "dependency": + Dependency = (List)value; + return this; + case "package": + Package = (List)value; + return this; + case "global": + Global = (List)value; + return this; + case "binary": + BinaryElement = (List)value; + return this; + case "page": + Page = (Hl7.Fhir.Model.ImplementationGuide.PageComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/Library.cs b/src/Hl7.Fhir.STU3/Model/Generated/Library.cs index 71e834fb64..9e0e3a43fe 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/Library.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/Library.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -943,6 +943,94 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "usage": + UsageElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "approvalDate": + ApprovalDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "lastReviewDate": + LastReviewDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "effectivePeriod": + EffectivePeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "topic": + Topic = (List)value; + return this; + case "contributor": + Contributor = (List)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "relatedArtifact": + RelatedArtifact = (List)value; + return this; + case "parameter": + Parameter = (List)value; + return this; + case "dataRequirement": + DataRequirement = (List)value; + return this; + case "content": + Content = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/Linkage.cs b/src/Hl7.Fhir.STU3/Model/Generated/Linkage.cs index 737f545668..142a97c109 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/Linkage.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/Linkage.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -235,6 +235,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "resource": + Resource = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -395,6 +411,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "active": + ActiveElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "author": + Author = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "item": + Item = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/List.cs b/src/Hl7.Fhir.STU3/Model/Generated/List.cs index 657ff5d8ee..d59cd21120 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/List.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/List.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -296,6 +296,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "flag": + Flag = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "deleted": + DeletedElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "item": + Item = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -739,6 +761,55 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "mode": + ModeElement = (Code)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "source": + Source = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "orderedBy": + OrderedBy = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "note": + Note = (List)value; + return this; + case "entry": + Entry = (List)value; + return this; + case "emptyReason": + EmptyReason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/Location.cs b/src/Hl7.Fhir.STU3/Model/Generated/Location.cs index 953fcc6128..590f6a7f6a 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/Location.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/Location.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -312,6 +312,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "longitude": + LongitudeElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "latitude": + LatitudeElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "altitude": + AltitudeElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -813,6 +832,61 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "operationalStatus": + OperationalStatus = (Hl7.Fhir.Model.Coding)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "alias": + AliasElement = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "mode": + ModeElement = (Code)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "telecom": + Telecom = (List)value; + return this; + case "address": + Address = (Hl7.Fhir.Model.Address)value; + return this; + case "physicalType": + PhysicalType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "position": + Position = (Hl7.Fhir.Model.Location.PositionComponent)value; + return this; + case "managingOrganization": + ManagingOrganization = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "partOf": + PartOf = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "endpoint": + Endpoint = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/Measure.cs b/src/Hl7.Fhir.STU3/Model/Generated/Measure.cs index 58b1862c16..7336a3ccf2 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/Measure.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/Measure.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -287,6 +287,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "population": + Population = (List)value; + return this; + case "stratifier": + Stratifier = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -544,6 +569,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "criteria": + CriteriaElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -739,6 +789,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "criteria": + CriteriaElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "path": + PathElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -956,6 +1025,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "usage": + Usage = (List)value; + return this; + case "criteria": + CriteriaElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "path": + PathElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2249,6 +2340,127 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "usage": + UsageElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "approvalDate": + ApprovalDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "lastReviewDate": + LastReviewDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "effectivePeriod": + EffectivePeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "topic": + Topic = (List)value; + return this; + case "contributor": + Contributor = (List)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "relatedArtifact": + RelatedArtifact = (List)value; + return this; + case "library": + Library = (List)value; + return this; + case "disclaimer": + DisclaimerElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "scoring": + Scoring = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "compositeScoring": + CompositeScoring = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "type": + Type = (List)value; + return this; + case "riskAdjustment": + RiskAdjustmentElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "rateAggregation": + RateAggregationElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "rationale": + RationaleElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "clinicalRecommendationStatement": + ClinicalRecommendationStatementElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "improvementNotation": + ImprovementNotationElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "definition": + DefinitionElement = (List)value; + return this; + case "guidance": + GuidanceElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "set": + SetElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "group": + Group = (List)value; + return this; + case "supplementalData": + SupplementalData = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/MeasureReport.cs b/src/Hl7.Fhir.STU3/Model/Generated/MeasureReport.cs index 067081969a..e0f8fccc83 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/MeasureReport.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/MeasureReport.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -304,6 +304,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "population": + Population = (List)value; + return this; + case "measureScore": + MeasureScoreElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "stratifier": + Stratifier = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -504,6 +526,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "count": + CountElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "patients": + Patients = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -642,6 +686,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "stratum": + Stratum = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -836,6 +896,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "value": + ValueElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "population": + Population = (List)value; + return this; + case "measureScore": + MeasureScoreElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1035,6 +1114,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "count": + CountElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "patients": + Patients = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1396,6 +1497,46 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "type": + TypeElement = (Code)value; + return this; + case "measure": + Measure = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "reportingOrganization": + ReportingOrganization = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "group": + Group = (List)value; + return this; + case "evaluatedResources": + EvaluatedResources = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/Media.cs b/src/Hl7.Fhir.STU3/Model/Generated/Media.cs index bc130cc512..1f076ab1db 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/Media.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/Media.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -645,6 +645,70 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "type": + TypeElement = (Code)value; + return this; + case "subtype": + Subtype = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "view": + View = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "context": + Context = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "occurrence": + Occurrence = (Hl7.Fhir.Model.DataType)value; + return this; + case "operator": + Operator = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "bodySite": + BodySite = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "device": + Device = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "height": + HeightElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "width": + WidthElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "frames": + FramesElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "duration": + DurationElement = (Hl7.Fhir.Model.UnsignedInt)value; + return this; + case "content": + Content = (Hl7.Fhir.Model.Attachment)value; + return this; + case "note": + Note = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/Medication.cs b/src/Hl7.Fhir.STU3/Model/Generated/Medication.cs index 67644655c3..65adfa6357 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/Medication.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/Medication.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -257,6 +257,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "item": + Item = (Hl7.Fhir.Model.DataType)value; + return this; + case "isActive": + IsActiveElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "amount": + Amount = (Hl7.Fhir.Model.Ratio)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -417,6 +436,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "container": + Container = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "content": + Content = (List)value; + return this; + case "batch": + Batch = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -557,6 +595,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "item": + Item = (Hl7.Fhir.Model.DataType)value; + return this; + case "amount": + Amount = (Hl7.Fhir.Model.Quantity)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -728,6 +782,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "lotNumber": + LotNumberElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "expirationDate": + ExpirationDateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1055,6 +1125,43 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "isBrand": + IsBrandElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "isOverTheCounter": + IsOverTheCounterElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "manufacturer": + Manufacturer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "form": + Form = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "ingredient": + Ingredient = (List)value; + return this; + case "package": + Package = (Hl7.Fhir.Model.Medication.PackageComponent)value; + return this; + case "image": + Image = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/MedicationAdministration.cs b/src/Hl7.Fhir.STU3/Model/Generated/MedicationAdministration.cs index d6f7cfd0d4..61dff5aeb5 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/MedicationAdministration.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/MedicationAdministration.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -237,6 +237,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "actor": + Actor = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "onBehalfOf": + OnBehalfOf = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -479,6 +495,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "text": + TextElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "site": + Site = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "route": + Route = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "method": + Method = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "dose": + Dose = (Hl7.Fhir.Model.Quantity)value; + return this; + case "rate": + Rate = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1061,6 +1105,76 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "definition": + Definition = (List)value; + return this; + case "partOf": + PartOf = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "medication": + Medication = (Hl7.Fhir.Model.DataType)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "context": + Context = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "supportingInformation": + SupportingInformation = (List)value; + return this; + case "effective": + Effective = (Hl7.Fhir.Model.DataType)value; + return this; + case "performer": + Performer = (List)value; + return this; + case "notGiven": + NotGivenElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "reasonNotGiven": + ReasonNotGiven = (List)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "reasonReference": + ReasonReference = (List)value; + return this; + case "prescription": + Prescription = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "device": + Device = (List)value; + return this; + case "note": + Note = (List)value; + return this; + case "dosage": + Dosage = (Hl7.Fhir.Model.MedicationAdministration.DosageComponent)value; + return this; + case "eventHistory": + EventHistory = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/MedicationDispense.cs b/src/Hl7.Fhir.STU3/Model/Generated/MedicationDispense.cs index 6b2d32a023..c44e54853b 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/MedicationDispense.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/MedicationDispense.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -238,6 +238,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "actor": + Actor = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "onBehalfOf": + OnBehalfOf = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -440,6 +456,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "wasSubstituted": + WasSubstitutedElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "reason": + Reason = (List)value; + return this; + case "responsibleParty": + ResponsibleParty = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1136,6 +1174,88 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "partOf": + PartOf = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "medication": + Medication = (Hl7.Fhir.Model.DataType)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "context": + Context = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "supportingInformation": + SupportingInformation = (List)value; + return this; + case "performer": + Performer = (List)value; + return this; + case "authorizingPrescription": + AuthorizingPrescription = (List)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "daysSupply": + DaysSupply = (Hl7.Fhir.Model.Quantity)value; + return this; + case "whenPrepared": + WhenPreparedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "whenHandedOver": + WhenHandedOverElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "destination": + Destination = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "receiver": + Receiver = (List)value; + return this; + case "note": + Note = (List)value; + return this; + case "dosageInstruction": + DosageInstruction = (List)value; + return this; + case "substitution": + Substitution = (Hl7.Fhir.Model.MedicationDispense.SubstitutionComponent)value; + return this; + case "detectedIssue": + DetectedIssue = (List)value; + return this; + case "notDone": + NotDoneElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "notDoneReason": + NotDoneReason = (Hl7.Fhir.Model.DataType)value; + return this; + case "eventHistory": + EventHistory = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/MedicationRequest.cs b/src/Hl7.Fhir.STU3/Model/Generated/MedicationRequest.cs index dda0237f3c..75adbec3e4 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/MedicationRequest.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/MedicationRequest.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -316,6 +316,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "agent": + Agent = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "onBehalfOf": + OnBehalfOf = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -534,6 +550,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "validityPeriod": + ValidityPeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "numberOfRepeatsAllowed": + NumberOfRepeatsAllowedElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "expectedSupplyDuration": + ExpectedSupplyDuration = (Hl7.Fhir.Model.Duration)value; + return this; + case "performer": + Performer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -692,6 +733,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "allowed": + AllowedElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "reason": + Reason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1391,6 +1448,88 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "definition": + Definition = (List)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "groupIdentifier": + GroupIdentifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "intent": + IntentElement = (Code)value; + return this; + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "priority": + PriorityElement = (Code)value; + return this; + case "medication": + Medication = (Hl7.Fhir.Model.DataType)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "context": + Context = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "supportingInformation": + SupportingInformation = (List)value; + return this; + case "authoredOn": + AuthoredOnElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "requester": + Requester = (Hl7.Fhir.Model.MedicationRequest.RequesterComponent)value; + return this; + case "recorder": + Recorder = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "reasonReference": + ReasonReference = (List)value; + return this; + case "note": + Note = (List)value; + return this; + case "dosageInstruction": + DosageInstruction = (List)value; + return this; + case "dispenseRequest": + DispenseRequest = (Hl7.Fhir.Model.MedicationRequest.DispenseRequestComponent)value; + return this; + case "substitution": + Substitution = (Hl7.Fhir.Model.MedicationRequest.SubstitutionComponent)value; + return this; + case "priorPrescription": + PriorPrescription = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "detectedIssue": + DetectedIssue = (List)value; + return this; + case "eventHistory": + EventHistory = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/MedicationStatement.cs b/src/Hl7.Fhir.STU3/Model/Generated/MedicationStatement.cs index 2f71a17abd..64edeb5eb6 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/MedicationStatement.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/MedicationStatement.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -691,6 +691,70 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "partOf": + PartOf = (List)value; + return this; + case "context": + Context = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "medication": + Medication = (Hl7.Fhir.Model.DataType)value; + return this; + case "effective": + Effective = (Hl7.Fhir.Model.DataType)value; + return this; + case "dateAsserted": + DateAssertedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "informationSource": + InformationSource = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "derivedFrom": + DerivedFrom = (List)value; + return this; + case "taken": + TakenElement = (Code)value; + return this; + case "reasonNotTaken": + ReasonNotTaken = (List)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "reasonReference": + ReasonReference = (List)value; + return this; + case "note": + Note = (List)value; + return this; + case "dosage": + Dosage = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/MessageDefinition.cs b/src/Hl7.Fhir.STU3/Model/Generated/MessageDefinition.cs index 291a3ecaca..ef6d69af04 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/MessageDefinition.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/MessageDefinition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -287,6 +287,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + CodeElement = (Code)value; + return this; + case "profile": + Profile = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "min": + MinElement = (Hl7.Fhir.Model.UnsignedInt)value; + return this; + case "max": + MaxElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -446,6 +468,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "message": + Message = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "situation": + SituationElement = (Hl7.Fhir.Model.Markdown)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1263,6 +1301,85 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "base": + Base = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "parent": + Parent = (List)value; + return this; + case "replaces": + Replaces = (List)value; + return this; + case "event": + Event = (Hl7.Fhir.Model.Coding)value; + return this; + case "category": + CategoryElement = (Code)value; + return this; + case "focus": + Focus = (List)value; + return this; + case "responseRequired": + ResponseRequiredElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "allowedResponse": + AllowedResponse = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/MessageHeader.cs b/src/Hl7.Fhir.STU3/Model/Generated/MessageHeader.cs index 629b99019c..21e95f6e3e 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/MessageHeader.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/MessageHeader.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -274,6 +274,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "target": + Target = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "endpoint": + EndpointElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -546,6 +565,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "software": + SoftwareElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (Hl7.Fhir.Model.ContactPoint)value; + return this; + case "endpoint": + EndpointElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -747,6 +791,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + IdentifierElement = (Hl7.Fhir.Model.Id)value; + return this; + case "code": + CodeElement = (Code)value; + return this; + case "details": + Details = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1113,6 +1176,52 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "event": + Event = (Hl7.Fhir.Model.Coding)value; + return this; + case "destination": + Destination = (List)value; + return this; + case "receiver": + Receiver = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "sender": + Sender = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "timestamp": + TimestampElement = (Hl7.Fhir.Model.Instant)value; + return this; + case "enterer": + Enterer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "author": + Author = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "source": + Source = (Hl7.Fhir.Model.MessageHeader.MessageSourceComponent)value; + return this; + case "responsible": + Responsible = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "reason": + Reason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "response": + Response = (Hl7.Fhir.Model.MessageHeader.ResponseComponent)value; + return this; + case "focus": + Focus = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/Money.cs b/src/Hl7.Fhir.STU3/Model/Generated/Money.cs index 97a5389366..e2ec09db37 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/Money.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/Money.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/NamingSystem.cs b/src/Hl7.Fhir.STU3/Model/Generated/NamingSystem.cs index 44f7a428df..15716b09f3 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/NamingSystem.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/NamingSystem.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -387,6 +387,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "value": + ValueElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "preferred": + PreferredElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "comment": + CommentElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -920,6 +945,58 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "kind": + KindElement = (Code)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "responsible": + ResponsibleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "usage": + UsageElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "uniqueId": + UniqueId = (List)value; + return this; + case "replacedBy": + ReplacedBy = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/NutritionOrder.cs b/src/Hl7.Fhir.STU3/Model/Generated/NutritionOrder.cs index 4879a631a9..602f7638c6 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/NutritionOrder.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/NutritionOrder.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -359,6 +359,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (List)value; + return this; + case "schedule": + Schedule = (List)value; + return this; + case "nutrient": + Nutrient = (List)value; + return this; + case "texture": + Texture = (List)value; + return this; + case "fluidConsistencyType": + FluidConsistencyType = (List)value; + return this; + case "instruction": + InstructionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -499,6 +527,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "modifier": + Modifier = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "amount": + Amount = (Hl7.Fhir.Model.Quantity)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -636,6 +680,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "modifier": + Modifier = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "foodType": + FoodType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -872,6 +932,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "productName": + ProductNameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "schedule": + Schedule = (List)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "instruction": + InstructionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1215,6 +1300,43 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "baseFormulaType": + BaseFormulaType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "baseFormulaProductName": + BaseFormulaProductNameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "additiveType": + AdditiveType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "additiveProductName": + AdditiveProductNameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "caloricDensity": + CaloricDensity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "routeofAdministration": + RouteofAdministration = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "administration": + Administration = (List)value; + return this; + case "maxVolumeToDeliver": + MaxVolumeToDeliver = (Hl7.Fhir.Model.Quantity)value; + return this; + case "administrationInstruction": + AdministrationInstructionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1381,6 +1503,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "schedule": + Schedule = (Hl7.Fhir.Model.Timing)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "rate": + Rate = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1767,6 +1908,52 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "dateTime": + DateTimeElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "orderer": + Orderer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "allergyIntolerance": + AllergyIntolerance = (List)value; + return this; + case "foodPreferenceModifier": + FoodPreferenceModifier = (List)value; + return this; + case "excludeFoodModifier": + ExcludeFoodModifier = (List)value; + return this; + case "oralDiet": + OralDiet = (Hl7.Fhir.Model.NutritionOrder.OralDietComponent)value; + return this; + case "supplement": + Supplement = (List)value; + return this; + case "enteralFormula": + EnteralFormula = (Hl7.Fhir.Model.NutritionOrder.EnteralFormulaComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/Observation.cs b/src/Hl7.Fhir.STU3/Model/Generated/Observation.cs index 1bdaa0cbcf..f898ee726e 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/Observation.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/Observation.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -338,6 +338,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "low": + Low = (Hl7.Fhir.Model.Quantity)value; + return this; + case "high": + High = (Hl7.Fhir.Model.Quantity)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "appliesTo": + AppliesTo = (List)value; + return this; + case "age": + Age = (Hl7.Fhir.Model.Range)value; + return this; + case "text": + TextElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -501,6 +529,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "target": + Target = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -707,6 +751,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + case "dataAbsentReason": + DataAbsentReason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "interpretation": + Interpretation = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "referenceRange": + ReferenceRange = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1316,6 +1385,79 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "category": + Category = (List)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "context": + Context = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "effective": + Effective = (Hl7.Fhir.Model.DataType)value; + return this; + case "issued": + IssuedElement = (Hl7.Fhir.Model.Instant)value; + return this; + case "performer": + Performer = (List)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + case "dataAbsentReason": + DataAbsentReason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "interpretation": + Interpretation = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "comment": + CommentElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "bodySite": + BodySite = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "method": + Method = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "specimen": + Specimen = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "device": + Device = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "referenceRange": + ReferenceRange = (List)value; + return this; + case "related": + Related = (List)value; + return this; + case "component": + Component = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/OperationDefinition.cs b/src/Hl7.Fhir.STU3/Model/Generated/OperationDefinition.cs index db3f693509..285dbb6dcf 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/OperationDefinition.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/OperationDefinition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -515,6 +515,46 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.Code)value; + return this; + case "use": + UseElement = (Code)value; + return this; + case "min": + MinElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "max": + MaxElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "documentation": + DocumentationElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "type": + TypeElement = (Code)value; + return this; + case "searchType": + SearchTypeElement = (Code)value; + return this; + case "profile": + Profile = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "binding": + Binding = (Hl7.Fhir.Model.OperationDefinition.BindingComponent)value; + return this; + case "part": + Part = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -683,6 +723,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "strength": + StrengthElement = (Code)value; + return this; + case "valueSet": + ValueSet = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -856,6 +912,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "parameterName": + ParameterNameElement = (List)value; + return this; + case "comment": + CommentElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1743,6 +1815,85 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "kind": + KindElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "idempotent": + IdempotentElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "code": + CodeElement = (Hl7.Fhir.Model.Code)value; + return this; + case "comment": + CommentElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "base": + Base = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "resource": + ResourceElement = (List>)value; + return this; + case "system": + SystemElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "type": + TypeElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "instance": + InstanceElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "parameter": + Parameter = (List)value; + return this; + case "overload": + Overload = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/Organization.cs b/src/Hl7.Fhir.STU3/Model/Generated/Organization.cs index 3195353226..f740de161d 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/Organization.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/Organization.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -229,6 +229,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "purpose": + Purpose = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "name": + Name = (Hl7.Fhir.Model.HumanName)value; + return this; + case "telecom": + Telecom = (List)value; + return this; + case "address": + Address = (Hl7.Fhir.Model.Address)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -585,6 +607,46 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "active": + ActiveElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "type": + Type = (List)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "alias": + AliasElement = (List)value; + return this; + case "telecom": + Telecom = (List)value; + return this; + case "address": + Address = (List)value; + return this; + case "partOf": + PartOf = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "endpoint": + Endpoint = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/ParameterDefinition.cs b/src/Hl7.Fhir.STU3/Model/Generated/ParameterDefinition.cs index 26c75210e4..0bfe791054 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/ParameterDefinition.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/ParameterDefinition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -389,6 +389,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.Code)value; + return this; + case "use": + UseElement = (Code)value; + return this; + case "min": + MinElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "max": + MaxElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "documentation": + DocumentationElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "type": + TypeElement = (Code)value; + return this; + case "profile": + Profile = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/Patient.cs b/src/Hl7.Fhir.STU3/Model/Generated/Patient.cs index d2315e6635..5fce35f02f 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/Patient.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/Patient.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -349,6 +349,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "relationship": + Relationship = (List)value; + return this; + case "name": + Name = (Hl7.Fhir.Model.HumanName)value; + return this; + case "telecom": + Telecom = (List)value; + return this; + case "address": + Address = (Hl7.Fhir.Model.Address)value; + return this; + case "gender": + GenderElement = (Code)value; + return this; + case "organization": + Organization = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -515,6 +546,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "species": + Species = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "breed": + Breed = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "genderStatus": + GenderStatus = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -672,6 +722,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "language": + Language = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "preferred": + PreferredElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -833,6 +899,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "other": + Other = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "type": + TypeElement = (Code)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1342,6 +1424,67 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "active": + ActiveElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "name": + Name = (List)value; + return this; + case "telecom": + Telecom = (List)value; + return this; + case "gender": + GenderElement = (Code)value; + return this; + case "birthDate": + BirthDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "deceased": + Deceased = (Hl7.Fhir.Model.DataType)value; + return this; + case "address": + Address = (List)value; + return this; + case "maritalStatus": + MaritalStatus = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "multipleBirth": + MultipleBirth = (Hl7.Fhir.Model.DataType)value; + return this; + case "photo": + Photo = (List)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "animal": + Animal = (Hl7.Fhir.Model.Patient.AnimalComponent)value; + return this; + case "communication": + Communication = (List)value; + return this; + case "generalPractitioner": + GeneralPractitioner = (List)value; + return this; + case "managingOrganization": + ManagingOrganization = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "link": + Link = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/PaymentNotice.cs b/src/Hl7.Fhir.STU3/Model/Generated/PaymentNotice.cs index 0c074cbce3..da7e41ef25 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/PaymentNotice.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/PaymentNotice.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -406,6 +406,46 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "request": + Request = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "response": + Response = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "statusDate": + StatusDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "created": + CreatedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "target": + Target = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "provider": + Provider = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "organization": + Organization = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "paymentStatus": + PaymentStatus = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/PaymentReconciliation.cs b/src/Hl7.Fhir.STU3/Model/Generated/PaymentReconciliation.cs index 51bca9b562..36d867c734 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/PaymentReconciliation.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/PaymentReconciliation.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -318,6 +318,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "request": + Request = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "response": + Response = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "submitter": + Submitter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "payee": + Payee = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "amount": + Amount = (Hl7.Fhir.Model.Money)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -477,6 +508,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "text": + TextElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -918,6 +965,58 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "created": + CreatedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "organization": + Organization = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "request": + Request = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "outcome": + Outcome = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "disposition": + DispositionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "requestProvider": + RequestProvider = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "requestOrganization": + RequestOrganization = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "detail": + Detail = (List)value; + return this; + case "form": + Form = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "total": + Total = (Hl7.Fhir.Model.Money)value; + return this; + case "processNote": + ProcessNote = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/Person.cs b/src/Hl7.Fhir.STU3/Model/Generated/Person.cs index af64009183..d5cc195f9c 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/Person.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/Person.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -240,6 +240,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "target": + Target = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "assurance": + AssuranceElement = (Code)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -591,6 +607,46 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "name": + Name = (List)value; + return this; + case "telecom": + Telecom = (List)value; + return this; + case "gender": + GenderElement = (Code)value; + return this; + case "birthDate": + BirthDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "address": + Address = (List)value; + return this; + case "photo": + Photo = (Hl7.Fhir.Model.Attachment)value; + return this; + case "managingOrganization": + ManagingOrganization = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "active": + ActiveElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "link": + Link = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/PlanDefinition.cs b/src/Hl7.Fhir.STU3/Model/Generated/PlanDefinition.cs index 561354157a..8c6ddebf29 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/PlanDefinition.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/PlanDefinition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -299,6 +299,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "description": + Description = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "priority": + Priority = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "start": + Start = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "addresses": + Addresses = (List)value; + return this; + case "documentation": + Documentation = (List)value; + return this; + case "target": + Target = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -463,6 +494,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "measure": + Measure = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "detail": + Detail = (Hl7.Fhir.Model.DataType)value; + return this; + case "due": + Due = (Hl7.Fhir.Model.Duration)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1291,6 +1341,91 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "label": + LabelElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "textEquivalent": + TextEquivalentElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "code": + Code = (List)value; + return this; + case "reason": + Reason = (List)value; + return this; + case "documentation": + Documentation = (List)value; + return this; + case "goalId": + GoalIdElement = (List)value; + return this; + case "triggerDefinition": + TriggerDefinition = (List)value; + return this; + case "condition": + Condition = (List)value; + return this; + case "input": + Input = (List)value; + return this; + case "output": + Output = (List)value; + return this; + case "relatedAction": + RelatedAction = (List)value; + return this; + case "timing": + Timing = (Hl7.Fhir.Model.DataType)value; + return this; + case "participant": + Participant = (List)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.Coding)value; + return this; + case "groupingBehavior": + GroupingBehaviorElement = (Code)value; + return this; + case "selectionBehavior": + SelectionBehaviorElement = (Code)value; + return this; + case "requiredBehavior": + RequiredBehaviorElement = (Code)value; + return this; + case "precheckBehavior": + PrecheckBehaviorElement = (Code)value; + return this; + case "cardinalityBehavior": + CardinalityBehaviorElement = (Code)value; + return this; + case "definition": + Definition = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "transform": + Transform = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "dynamicValue": + DynamicValue = (List)value; + return this; + case "action": + Action = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1566,6 +1701,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "kind": + KindElement = (Code)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "language": + LanguageElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "expression": + ExpressionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1767,6 +1924,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "actionId": + ActionIdElement = (Hl7.Fhir.Model.Id)value; + return this; + case "relationship": + RelationshipElement = (Code)value; + return this; + case "offset": + Offset = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1925,6 +2101,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "role": + Role = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2174,6 +2366,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "path": + PathElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "language": + LanguageElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "expression": + ExpressionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3070,6 +3284,94 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "usage": + UsageElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "approvalDate": + ApprovalDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "lastReviewDate": + LastReviewDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "effectivePeriod": + EffectivePeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "topic": + Topic = (List)value; + return this; + case "contributor": + Contributor = (List)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "relatedArtifact": + RelatedArtifact = (List)value; + return this; + case "library": + Library = (List)value; + return this; + case "goal": + Goal = (List)value; + return this; + case "action": + Action = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/Practitioner.cs b/src/Hl7.Fhir.STU3/Model/Generated/Practitioner.cs index ee8811d194..6151d66f10 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/Practitioner.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/Practitioner.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -230,6 +230,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "issuer": + Issuer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -584,6 +606,46 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "active": + ActiveElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "name": + Name = (List)value; + return this; + case "telecom": + Telecom = (List)value; + return this; + case "address": + Address = (List)value; + return this; + case "gender": + GenderElement = (Code)value; + return this; + case "birthDate": + BirthDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "photo": + Photo = (List)value; + return this; + case "qualification": + Qualification = (List)value; + return this; + case "communication": + Communication = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/PractitionerRole.cs b/src/Hl7.Fhir.STU3/Model/Generated/PractitionerRole.cs index 0ffbdc0804..8d9d174073 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/PractitionerRole.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/PractitionerRole.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -303,6 +303,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "daysOfWeek": + DaysOfWeekElement = (List>)value; + return this; + case "allDay": + AllDayElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "availableStartTime": + AvailableStartTimeElement = (Hl7.Fhir.Model.Time)value; + return this; + case "availableEndTime": + AvailableEndTimeElement = (Hl7.Fhir.Model.Time)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -459,6 +481,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "during": + During = (Hl7.Fhir.Model.Period)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -888,6 +926,58 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "active": + ActiveElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "practitioner": + Practitioner = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "organization": + Organization = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "code": + Code = (List)value; + return this; + case "specialty": + Specialty = (List)value; + return this; + case "location": + Location = (List)value; + return this; + case "healthcareService": + HealthcareService = (List)value; + return this; + case "telecom": + Telecom = (List)value; + return this; + case "availableTime": + AvailableTime = (List)value; + return this; + case "notAvailable": + NotAvailable = (List)value; + return this; + case "availabilityExceptions": + AvailabilityExceptionsElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "endpoint": + Endpoint = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/Procedure.cs b/src/Hl7.Fhir.STU3/Model/Generated/Procedure.cs index d9bf55620b..020b8a4115 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/Procedure.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/Procedure.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -212,6 +212,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "role": + Role = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "actor": + Actor = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "onBehalfOf": + OnBehalfOf = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -352,6 +371,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "action": + Action = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "manipulated": + Manipulated = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1063,6 +1098,94 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "definition": + Definition = (List)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "partOf": + PartOf = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "notDone": + NotDoneElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "notDoneReason": + NotDoneReason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "context": + Context = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "performed": + Performed = (Hl7.Fhir.Model.DataType)value; + return this; + case "performer": + Performer = (List)value; + return this; + case "location": + Location = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "reasonReference": + ReasonReference = (List)value; + return this; + case "bodySite": + BodySite = (List)value; + return this; + case "outcome": + Outcome = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "report": + Report = (List)value; + return this; + case "complication": + Complication = (List)value; + return this; + case "complicationDetail": + ComplicationDetail = (List)value; + return this; + case "followUp": + FollowUp = (List)value; + return this; + case "note": + Note = (List)value; + return this; + case "focalDevice": + FocalDevice = (List)value; + return this; + case "usedReference": + UsedReference = (List)value; + return this; + case "usedCode": + UsedCode = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/ProcedureRequest.cs b/src/Hl7.Fhir.STU3/Model/Generated/ProcedureRequest.cs index 1afe0c34f7..9531a91ac4 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/ProcedureRequest.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/ProcedureRequest.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -191,6 +191,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "agent": + Agent = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "onBehalfOf": + OnBehalfOf = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -957,6 +973,94 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "definition": + Definition = (List)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "replaces": + Replaces = (List)value; + return this; + case "requisition": + Requisition = (Hl7.Fhir.Model.Identifier)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "intent": + IntentElement = (Code)value; + return this; + case "priority": + PriorityElement = (Code)value; + return this; + case "doNotPerform": + DoNotPerformElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "category": + Category = (List)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "context": + Context = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "occurrence": + Occurrence = (Hl7.Fhir.Model.DataType)value; + return this; + case "asNeeded": + AsNeeded = (Hl7.Fhir.Model.DataType)value; + return this; + case "authoredOn": + AuthoredOnElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "requester": + Requester = (Hl7.Fhir.Model.ProcedureRequest.RequesterComponent)value; + return this; + case "performerType": + PerformerType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "performer": + Performer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "reasonReference": + ReasonReference = (List)value; + return this; + case "supportingInfo": + SupportingInfo = (List)value; + return this; + case "specimen": + Specimen = (List)value; + return this; + case "bodySite": + BodySite = (List)value; + return this; + case "note": + Note = (List)value; + return this; + case "relevantHistory": + RelevantHistory = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/ProcessRequest.cs b/src/Hl7.Fhir.STU3/Model/Generated/ProcessRequest.cs index 7dc716fe76..7530d7d761 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/ProcessRequest.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/ProcessRequest.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -217,6 +217,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "sequenceLinkId": + SequenceLinkIdElement = (Hl7.Fhir.Model.Integer)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -753,6 +766,61 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "action": + ActionElement = (Code)value; + return this; + case "target": + Target = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "created": + CreatedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "provider": + Provider = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "organization": + Organization = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "request": + Request = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "response": + Response = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "nullify": + NullifyElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "reference": + ReferenceElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "item": + Item = (List)value; + return this; + case "include": + IncludeElement = (List)value; + return this; + case "exclude": + ExcludeElement = (List)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/ProcessResponse.cs b/src/Hl7.Fhir.STU3/Model/Generated/ProcessResponse.cs index ab9c8802cd..0d00332027 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/ProcessResponse.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/ProcessResponse.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -204,6 +204,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "text": + TextElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -628,6 +644,55 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "created": + CreatedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "organization": + Organization = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "request": + Request = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "outcome": + Outcome = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "disposition": + DispositionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "requestProvider": + RequestProvider = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "requestOrganization": + RequestOrganization = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "form": + Form = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "processNote": + ProcessNote = (List)value; + return this; + case "error": + Error = (List)value; + return this; + case "communicationRequest": + CommunicationRequest = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/Provenance.cs b/src/Hl7.Fhir.STU3/Model/Generated/Provenance.cs index d78951e94c..b082a431c1 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/Provenance.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/Provenance.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -279,6 +279,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "role": + Role = (List)value; + return this; + case "who": + Who = (Hl7.Fhir.Model.DataType)value; + return this; + case "onBehalfOf": + OnBehalfOf = (Hl7.Fhir.Model.DataType)value; + return this; + case "relatedAgentType": + RelatedAgentType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -463,6 +485,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "role": + RoleElement = (Code)value; + return this; + case "what": + What = (Hl7.Fhir.Model.DataType)value; + return this; + case "agent": + Agent = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -799,6 +840,46 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "target": + Target = (List)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "recorded": + RecordedElement = (Hl7.Fhir.Model.Instant)value; + return this; + case "policy": + PolicyElement = (List)value; + return this; + case "location": + Location = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "reason": + Reason = (List)value; + return this; + case "activity": + Activity = (Hl7.Fhir.Model.Coding)value; + return this; + case "agent": + Agent = (List)value; + return this; + case "entity": + Entity = (List)value; + return this; + case "signature": + Signature = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/Questionnaire.cs b/src/Hl7.Fhir.STU3/Model/Generated/Questionnaire.cs index e27640e321..1c616d44b5 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/Questionnaire.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/Questionnaire.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -80,12 +80,6 @@ public enum QuestionnaireItemType [EnumLiteral("display"), Description("Display")] Display, /// - /// An item that defines a specific answer to be captured, and may have child items.(the answer provided in the QuestionnaireResponse should be of the defined datatype) - /// (system: http://hl7.org/fhir/item-type) - /// - [EnumLiteral("question"), Description("Question")] - Question, - /// /// Question with a yes/no answer (valueBoolean) /// (system: http://hl7.org/fhir/item-type) /// @@ -748,6 +742,61 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "linkId": + LinkIdElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "definition": + DefinitionElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "code": + Code = (List)value; + return this; + case "prefix": + PrefixElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "text": + TextElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "type": + TypeElement = (Code)value; + return this; + case "enableWhen": + EnableWhen = (List)value; + return this; + case "required": + RequiredElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "repeats": + RepeatsElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "readOnly": + ReadOnlyElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "maxLength": + MaxLengthElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "options": + Options = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "option": + Option = (List)value; + return this; + case "initial": + Initial = (Hl7.Fhir.Model.DataType)value; + return this; + case "item": + Item = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -960,6 +1009,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "question": + QuestionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "hasAnswer": + HasAnswerElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "answer": + Answer = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1080,6 +1148,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1864,6 +1945,79 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "approvalDate": + ApprovalDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "lastReviewDate": + LastReviewDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "effectivePeriod": + EffectivePeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "code": + Code = (List)value; + return this; + case "subjectType": + SubjectTypeElement = (List>)value; + return this; + case "item": + Item = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/QuestionnaireResponse.cs b/src/Hl7.Fhir.STU3/Model/Generated/QuestionnaireResponse.cs index cbe6376c85..99c0862c7f 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/QuestionnaireResponse.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/QuestionnaireResponse.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -370,6 +370,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "linkId": + LinkIdElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "definition": + DefinitionElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "text": + TextElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "answer": + Answer = (List)value; + return this; + case "item": + Item = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -515,6 +543,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + case "item": + Item = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -880,6 +924,49 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "parent": + Parent = (List)value; + return this; + case "questionnaire": + Questionnaire = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "context": + Context = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "authored": + AuthoredElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "author": + Author = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "source": + Source = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "item": + Item = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/Ratio.cs b/src/Hl7.Fhir.STU3/Model/Generated/Ratio.cs index fa661dee7c..e8b7bfd619 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/Ratio.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/Ratio.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -168,6 +168,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "numerator": + Numerator = (Hl7.Fhir.Model.Quantity)value; + return this; + case "denominator": + Denominator = (Hl7.Fhir.Model.Quantity)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/ReferralRequest.cs b/src/Hl7.Fhir.STU3/Model/Generated/ReferralRequest.cs index 1d917b17f5..24871f53bc 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/ReferralRequest.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/ReferralRequest.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -190,6 +190,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "agent": + Agent = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "onBehalfOf": + OnBehalfOf = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -885,6 +901,85 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "definition": + Definition = (List)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "replaces": + Replaces = (List)value; + return this; + case "groupIdentifier": + GroupIdentifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "intent": + IntentElement = (Code)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "priority": + PriorityElement = (Code)value; + return this; + case "serviceRequested": + ServiceRequested = (List)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "context": + Context = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "occurrence": + Occurrence = (Hl7.Fhir.Model.DataType)value; + return this; + case "authoredOn": + AuthoredOnElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "requester": + Requester = (Hl7.Fhir.Model.ReferralRequest.RequesterComponent)value; + return this; + case "specialty": + Specialty = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "recipient": + Recipient = (List)value; + return this; + case "reasonCode": + ReasonCode = (List)value; + return this; + case "reasonReference": + ReasonReference = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "supportingInfo": + SupportingInfo = (List)value; + return this; + case "note": + Note = (List)value; + return this; + case "relevantHistory": + RelevantHistory = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/RelatedArtifact.cs b/src/Hl7.Fhir.STU3/Model/Generated/RelatedArtifact.cs index e14283cfeb..d7557c4c0b 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/RelatedArtifact.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/RelatedArtifact.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -389,6 +389,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "display": + DisplayElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "citation": + CitationElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "document": + Document = (Hl7.Fhir.Model.Attachment)value; + return this; + case "resource": + Resource = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/RelatedPerson.cs b/src/Hl7.Fhir.STU3/Model/Generated/RelatedPerson.cs index d47603df86..467f9d426c 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/RelatedPerson.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/RelatedPerson.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -424,6 +424,49 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "active": + ActiveElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "relationship": + Relationship = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "name": + Name = (List)value; + return this; + case "telecom": + Telecom = (List)value; + return this; + case "gender": + GenderElement = (Code)value; + return this; + case "birthDate": + BirthDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "address": + Address = (List)value; + return this; + case "photo": + Photo = (List)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/RequestGroup.cs b/src/Hl7.Fhir.STU3/Model/Generated/RequestGroup.cs index 4715943de4..f4d143f257 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/RequestGroup.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/RequestGroup.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -706,6 +706,70 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "label": + LabelElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "textEquivalent": + TextEquivalentElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "code": + Code = (List)value; + return this; + case "documentation": + Documentation = (List)value; + return this; + case "condition": + Condition = (List)value; + return this; + case "relatedAction": + RelatedAction = (List)value; + return this; + case "timing": + Timing = (Hl7.Fhir.Model.DataType)value; + return this; + case "participant": + Participant = (List)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.Coding)value; + return this; + case "groupingBehavior": + GroupingBehaviorElement = (Code)value; + return this; + case "selectionBehavior": + SelectionBehaviorElement = (Code)value; + return this; + case "requiredBehavior": + RequiredBehaviorElement = (Code)value; + return this; + case "precheckBehavior": + PrecheckBehaviorElement = (Code)value; + return this; + case "cardinalityBehavior": + CardinalityBehaviorElement = (Code)value; + return this; + case "resource": + Resource = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "action": + Action = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -974,6 +1038,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "kind": + KindElement = (Code)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "language": + LanguageElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "expression": + ExpressionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1174,6 +1260,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "actionId": + ActionIdElement = (Hl7.Fhir.Model.Id)value; + return this; + case "relationship": + RelationshipElement = (Code)value; + return this; + case "offset": + Offset = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1669,6 +1774,61 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "definition": + Definition = (List)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "replaces": + Replaces = (List)value; + return this; + case "groupIdentifier": + GroupIdentifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "intent": + IntentElement = (Code)value; + return this; + case "priority": + PriorityElement = (Code)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "context": + Context = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "authoredOn": + AuthoredOnElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "author": + Author = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "reason": + Reason = (Hl7.Fhir.Model.DataType)value; + return this; + case "note": + Note = (List)value; + return this; + case "action": + Action = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/ResearchStudy.cs b/src/Hl7.Fhir.STU3/Model/Generated/ResearchStudy.cs index 59ec356187..0ec67bf632 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/ResearchStudy.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/ResearchStudy.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -290,6 +290,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -875,6 +894,76 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "protocol": + Protocol = (List)value; + return this; + case "partOf": + PartOf = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "category": + Category = (List)value; + return this; + case "focus": + Focus = (List)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "relatedArtifact": + RelatedArtifact = (List)value; + return this; + case "keyword": + Keyword = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "enrollment": + Enrollment = (List)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "sponsor": + Sponsor = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "principalInvestigator": + PrincipalInvestigator = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "site": + Site = (List)value; + return this; + case "reasonStopped": + ReasonStopped = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "note": + Note = (List)value; + return this; + case "arm": + Arm = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/ResearchSubject.cs b/src/Hl7.Fhir.STU3/Model/Generated/ResearchSubject.cs index cd27004c0d..a3adf329ae 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/ResearchSubject.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/ResearchSubject.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -408,6 +408,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "study": + Study = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "individual": + Individual = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "assignedArm": + AssignedArmElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "actualArm": + ActualArmElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "consent": + Consent = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/RiskAssessment.cs b/src/Hl7.Fhir.STU3/Model/Generated/RiskAssessment.cs index 176f4c0b8c..a3ba1c3cdc 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/RiskAssessment.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/RiskAssessment.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -313,6 +313,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "outcome": + Outcome = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "probability": + Probability = (Hl7.Fhir.Model.DataType)value; + return this; + case "qualitativeRisk": + QualitativeRisk = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "relativeRisk": + RelativeRiskElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "when": + When = (Hl7.Fhir.Model.DataType)value; + return this; + case "rationale": + RationaleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -810,6 +838,64 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "basedOn": + BasedOn = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "parent": + Parent = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "method": + Method = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "context": + Context = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "occurrence": + Occurrence = (Hl7.Fhir.Model.DataType)value; + return this; + case "condition": + Condition = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "performer": + Performer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "reason": + Reason = (Hl7.Fhir.Model.DataType)value; + return this; + case "basis": + Basis = (List)value; + return this; + case "prediction": + Prediction = (List)value; + return this; + case "mitigation": + MitigationElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "comment": + CommentElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/SampledData.cs b/src/Hl7.Fhir.STU3/Model/Generated/SampledData.cs index 99ef29c480..36aa65c917 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/SampledData.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/SampledData.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -386,6 +386,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "origin": + Origin = (Hl7.Fhir.Model.Quantity)value; + return this; + case "period": + PeriodElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "factor": + FactorElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "lowerLimit": + LowerLimitElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "upperLimit": + UpperLimitElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "dimensions": + DimensionsElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "data": + DataElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/Schedule.cs b/src/Hl7.Fhir.STU3/Model/Generated/Schedule.cs index 0f8097d2d4..500497945a 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/Schedule.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/Schedule.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -338,6 +338,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "active": + ActiveElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "serviceCategory": + ServiceCategory = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "serviceType": + ServiceType = (List)value; + return this; + case "specialty": + Specialty = (List)value; + return this; + case "actor": + Actor = (List)value; + return this; + case "planningHorizon": + PlanningHorizon = (Hl7.Fhir.Model.Period)value; + return this; + case "comment": + CommentElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/SearchParameter.cs b/src/Hl7.Fhir.STU3/Model/Generated/SearchParameter.cs index 5e34ea026a..dcda0e4c83 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/SearchParameter.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/SearchParameter.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -382,6 +382,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "definition": + Definition = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "expression": + ExpressionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1352,6 +1368,88 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "code": + CodeElement = (Hl7.Fhir.Model.Code)value; + return this; + case "base": + BaseElement = (List>)value; + return this; + case "type": + TypeElement = (Code)value; + return this; + case "derivedFrom": + DerivedFromElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "expression": + ExpressionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "xpath": + XpathElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "xpathUsage": + XpathUsageElement = (Code)value; + return this; + case "target": + TargetElement = (List>)value; + return this; + case "comparator": + ComparatorElement = (List>)value; + return this; + case "modifier": + ModifierElement = (List>)value; + return this; + case "chain": + ChainElement = (List)value; + return this; + case "component": + Component = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/Sequence.cs b/src/Hl7.Fhir.STU3/Model/Generated/Sequence.cs index e7d921a69e..0c93b7a8a3 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/Sequence.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/Sequence.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -475,6 +475,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "chromosome": + Chromosome = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "genomeBuild": + GenomeBuildElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "referenceSeqId": + ReferenceSeqId = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "referenceSeqPointer": + ReferenceSeqPointer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "referenceSeqString": + ReferenceSeqStringElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "strand": + StrandElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "windowStart": + WindowStartElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "windowEnd": + WindowEndElement = (Hl7.Fhir.Model.Integer)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -792,6 +826,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "start": + StartElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "end": + EndElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "observedAllele": + ObservedAlleleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "referenceAllele": + ReferenceAlleleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "cigar": + CigarElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "variantPointer": + VariantPointer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1386,6 +1448,58 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "standardSequence": + StandardSequence = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "start": + StartElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "end": + EndElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "score": + Score = (Hl7.Fhir.Model.Quantity)value; + return this; + case "method": + Method = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "truthTP": + TruthTPElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "queryTP": + QueryTPElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "truthFN": + TruthFNElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "queryFP": + QueryFPElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "gtFP": + GtFPElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "precision": + PrecisionElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "recall": + RecallElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "fScore": + FScoreElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1728,6 +1842,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "datasetId": + DatasetIdElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "variantsetId": + VariantsetIdElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "readsetId": + ReadsetIdElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2214,6 +2356,61 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "type": + TypeElement = (Hl7.Fhir.Model.Code)value; + return this; + case "coordinateSystem": + CoordinateSystemElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "specimen": + Specimen = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "device": + Device = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "performer": + Performer = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "referenceSeq": + ReferenceSeq = (Hl7.Fhir.Model.Sequence.ReferenceSeqComponent)value; + return this; + case "variant": + Variant = (List)value; + return this; + case "observedSeq": + ObservedSeqElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "quality": + Quality = (List)value; + return this; + case "readCoverage": + ReadCoverageElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "repository": + Repository = (List)value; + return this; + case "pointer": + Pointer = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/ServiceDefinition.cs b/src/Hl7.Fhir.STU3/Model/Generated/ServiceDefinition.cs index 506848992a..d0893c22ce 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/ServiceDefinition.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/ServiceDefinition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -921,6 +921,91 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "usage": + UsageElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "approvalDate": + ApprovalDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "lastReviewDate": + LastReviewDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "effectivePeriod": + EffectivePeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "topic": + Topic = (List)value; + return this; + case "contributor": + Contributor = (List)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "relatedArtifact": + RelatedArtifact = (List)value; + return this; + case "trigger": + Trigger = (List)value; + return this; + case "dataRequirement": + DataRequirement = (List)value; + return this; + case "operationDefinition": + OperationDefinition = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/Slot.cs b/src/Hl7.Fhir.STU3/Model/Generated/Slot.cs index 13c0834eb5..155585efe1 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/Slot.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/Slot.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -501,6 +501,49 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "serviceCategory": + ServiceCategory = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "serviceType": + ServiceType = (List)value; + return this; + case "specialty": + Specialty = (List)value; + return this; + case "appointmentType": + AppointmentType = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "schedule": + Schedule = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "start": + StartElement = (Hl7.Fhir.Model.Instant)value; + return this; + case "end": + EndElement = (Hl7.Fhir.Model.Instant)value; + return this; + case "overbooked": + OverbookedElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "comment": + CommentElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/Specimen.cs b/src/Hl7.Fhir.STU3/Model/Generated/Specimen.cs index 64cbfa3be8..658b93b57a 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/Specimen.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/Specimen.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -288,6 +288,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "collector": + Collector = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "collected": + Collected = (Hl7.Fhir.Model.DataType)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "method": + Method = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "bodySite": + BodySite = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -492,6 +517,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "procedure": + Procedure = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "additive": + Additive = (List)value; + return this; + case "time": + Time = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -737,6 +784,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "capacity": + Capacity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "specimenQuantity": + SpecimenQuantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "additive": + Additive = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1123,6 +1198,52 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "accessionIdentifier": + AccessionIdentifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "subject": + Subject = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "receivedTime": + ReceivedTimeElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "parent": + Parent = (List)value; + return this; + case "request": + Request = (List)value; + return this; + case "collection": + Collection = (Hl7.Fhir.Model.Specimen.CollectionComponent)value; + return this; + case "processing": + Processing = (List)value; + return this; + case "container": + Container = (List)value; + return this; + case "note": + Note = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/StructureDefinition.cs b/src/Hl7.Fhir.STU3/Model/Generated/StructureDefinition.cs index 2cd12d50a1..1da7f6de2b 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/StructureDefinition.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/StructureDefinition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -384,6 +384,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identity": + IdentityElement = (Hl7.Fhir.Model.Id)value; + return this; + case "uri": + UriElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "comment": + CommentElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -501,6 +523,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "element": + Element = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -615,6 +650,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "element": + Element = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1665,6 +1713,100 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "keyword": + Keyword = (List)value; + return this; + case "fhirVersion": + FhirVersionElement = (Hl7.Fhir.Model.Id)value; + return this; + case "mapping": + Mapping = (List)value; + return this; + case "kind": + KindElement = (Code)value; + return this; + case "abstract": + AbstractElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "contextType": + ContextTypeElement = (Code)value; + return this; + case "context": + ContextElement = (List)value; + return this; + case "contextInvariant": + ContextInvariantElement = (List)value; + return this; + case "type": + TypeElement = (Hl7.Fhir.Model.Code)value; + return this; + case "baseDefinition": + BaseDefinitionElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "derivation": + DerivationElement = (Code)value; + return this; + case "snapshot": + Snapshot = (Hl7.Fhir.Model.StructureDefinition.SnapshotComponent)value; + return this; + case "differential": + Differential = (Hl7.Fhir.Model.StructureDefinition.DifferentialComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/StructureMap.cs b/src/Hl7.Fhir.STU3/Model/Generated/StructureMap.cs index 93faacce7f..e6e7fab0eb 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/StructureMap.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/StructureMap.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -593,6 +593,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "mode": + ModeElement = (Code)value; + return this; + case "alias": + AliasElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "documentation": + DocumentationElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -892,6 +914,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.Id)value; + return this; + case "extends": + ExtendsElement = (Hl7.Fhir.Model.Id)value; + return this; + case "typeMode": + TypeModeElement = (Code)value; + return this; + case "documentation": + DocumentationElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "input": + Input = (List)value; + return this; + case "rule": + Rule = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1150,6 +1200,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.Id)value; + return this; + case "type": + TypeElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "mode": + ModeElement = (Code)value; + return this; + case "documentation": + DocumentationElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1409,6 +1481,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.Id)value; + return this; + case "source": + Source = (List)value; + return this; + case "target": + Target = (List)value; + return this; + case "rule": + Rule = (List)value; + return this; + case "dependent": + Dependent = (List)value; + return this; + case "documentation": + DocumentationElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1880,6 +1980,46 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "context": + ContextElement = (Hl7.Fhir.Model.Id)value; + return this; + case "min": + MinElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "max": + MaxElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "type": + TypeElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "defaultValue": + DefaultValue = (Hl7.Fhir.Model.DataType)value; + return this; + case "element": + ElementElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "listMode": + ListModeElement = (Code)value; + return this; + case "variable": + VariableElement = (Hl7.Fhir.Model.Id)value; + return this; + case "condition": + ConditionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "check": + CheckElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2280,6 +2420,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "context": + ContextElement = (Hl7.Fhir.Model.Id)value; + return this; + case "contextType": + ContextTypeElement = (Code)value; + return this; + case "element": + ElementElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "variable": + VariableElement = (Hl7.Fhir.Model.Id)value; + return this; + case "listMode": + ListModeElement = (List>)value; + return this; + case "listRuleId": + ListRuleIdElement = (Hl7.Fhir.Model.Id)value; + return this; + case "transform": + TransformElement = (Code)value; + return this; + case "parameter": + Parameter = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2400,6 +2574,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2569,6 +2756,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.Id)value; + return this; + case "variable": + VariableElement = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3254,6 +3457,70 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "structure": + Structure = (List)value; + return this; + case "import": + ImportElement = (List)value; + return this; + case "group": + Group = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/Subscription.cs b/src/Hl7.Fhir.STU3/Model/Generated/Subscription.cs index 5beaf0248a..c7e1eb5434 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/Subscription.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/Subscription.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -377,6 +377,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "endpoint": + EndpointElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "payload": + PayloadElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "header": + HeaderElement = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -722,6 +744,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "status": + StatusElement = (Code)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "end": + EndElement = (Hl7.Fhir.Model.Instant)value; + return this; + case "reason": + ReasonElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "criteria": + CriteriaElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "error": + ErrorElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "channel": + Channel = (Hl7.Fhir.Model.Subscription.ChannelComponent)value; + return this; + case "tag": + Tag = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/Substance.cs b/src/Hl7.Fhir.STU3/Model/Generated/Substance.cs index 4d6a61083e..f7713e86a7 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/Substance.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/Substance.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -249,6 +249,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "expiry": + ExpiryElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -390,6 +409,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "quantity": + Quantity = (Hl7.Fhir.Model.Ratio)value; + return this; + case "substance": + Substance = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -660,6 +695,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "category": + Category = (List)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "instance": + Instance = (List)value; + return this; + case "ingredient": + Ingredient = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/SupplyDelivery.cs b/src/Hl7.Fhir.STU3/Model/Generated/SupplyDelivery.cs index a7415143aa..7c2b6296cb 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/SupplyDelivery.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/SupplyDelivery.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -245,6 +245,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "item": + Item = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -592,6 +608,49 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "partOf": + PartOf = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "suppliedItem": + SuppliedItem = (Hl7.Fhir.Model.SupplyDelivery.SuppliedItemComponent)value; + return this; + case "occurrence": + Occurrence = (Hl7.Fhir.Model.DataType)value; + return this; + case "supplier": + Supplier = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "destination": + Destination = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "receiver": + Receiver = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/SupplyRequest.cs b/src/Hl7.Fhir.STU3/Model/Generated/SupplyRequest.cs index b3c05f1bd2..e7be91a3fd 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/SupplyRequest.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/SupplyRequest.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -239,6 +239,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "quantity": + Quantity = (Hl7.Fhir.Model.Quantity)value; + return this; + case "item": + Item = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -379,6 +395,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "agent": + Agent = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "onBehalfOf": + OnBehalfOf = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -781,6 +813,52 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "category": + Category = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "priority": + PriorityElement = (Code)value; + return this; + case "orderedItem": + OrderedItem = (Hl7.Fhir.Model.SupplyRequest.OrderedItemComponent)value; + return this; + case "occurrence": + Occurrence = (Hl7.Fhir.Model.DataType)value; + return this; + case "authoredOn": + AuthoredOnElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "requester": + Requester = (Hl7.Fhir.Model.SupplyRequest.RequesterComponent)value; + return this; + case "supplier": + Supplier = (List)value; + return this; + case "reason": + Reason = (Hl7.Fhir.Model.DataType)value; + return this; + case "deliverFrom": + DeliverFrom = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "deliverTo": + DeliverTo = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/Task.cs b/src/Hl7.Fhir.STU3/Model/Generated/Task.cs index fedb73a54e..32eb4c6ac1 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/Task.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/Task.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -269,6 +269,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "agent": + Agent = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "onBehalfOf": + OnBehalfOf = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -446,6 +462,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "repetitions": + RepetitionsElement = (Hl7.Fhir.Model.PositiveInt)value; + return this; + case "period": + Period = (Hl7.Fhir.Model.Period)value; + return this; + case "recipient": + Recipient = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -587,6 +622,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -727,6 +778,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1518,6 +1585,97 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "definition": + Definition = (Hl7.Fhir.Model.DataType)value; + return this; + case "basedOn": + BasedOn = (List)value; + return this; + case "groupIdentifier": + GroupIdentifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "partOf": + PartOf = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "statusReason": + StatusReason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "businessStatus": + BusinessStatus = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "intent": + IntentElement = (Code)value; + return this; + case "priority": + PriorityElement = (Code)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "focus": + Focus = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "for": + For = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "context": + Context = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "executionPeriod": + ExecutionPeriod = (Hl7.Fhir.Model.Period)value; + return this; + case "authoredOn": + AuthoredOnElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "lastModified": + LastModifiedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "requester": + Requester = (Hl7.Fhir.Model.Task.RequesterComponent)value; + return this; + case "performerType": + PerformerType = (List)value; + return this; + case "owner": + Owner = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "reason": + Reason = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "note": + Note = (List)value; + return this; + case "relevantHistory": + RelevantHistory = (List)value; + return this; + case "restriction": + Restriction = (Hl7.Fhir.Model.Task.RestrictionComponent)value; + return this; + case "input": + Input = (List)value; + return this; + case "output": + Output = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/Template-Bindings.cs b/src/Hl7.Fhir.STU3/Model/Generated/Template-Bindings.cs index d5df9fce92..a06146d16c 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/Template-Bindings.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/Template-Bindings.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using Hl7.Fhir.Utility; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/Template-ModelInfo.cs b/src/Hl7.Fhir.STU3/Model/Generated/Template-ModelInfo.cs index 205306cdd1..def79e1054 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/Template-ModelInfo.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/Template-ModelInfo.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/TestReport.cs b/src/Hl7.Fhir.STU3/Model/Generated/TestReport.cs index a0071786b1..59dd0ede90 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/TestReport.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/TestReport.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -397,6 +397,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "uri": + UriElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "display": + DisplayElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -510,6 +529,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "action": + Action = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -645,6 +677,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "operation": + Operation = (Hl7.Fhir.Model.TestReport.OperationComponent)value; + return this; + case "assert": + Assert = (Hl7.Fhir.Model.TestReport.AssertComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -858,6 +906,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "result": + ResultElement = (Code)value; + return this; + case "message": + MessageElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "detail": + DetailElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1072,6 +1139,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "result": + ResultElement = (Code)value; + return this; + case "message": + MessageElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "detail": + DetailElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1263,6 +1349,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "action": + Action = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1400,6 +1505,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "operation": + Operation = (Hl7.Fhir.Model.TestReport.OperationComponent)value; + return this; + case "assert": + Assert = (Hl7.Fhir.Model.TestReport.AssertComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1515,6 +1636,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "action": + Action = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1630,6 +1764,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "operation": + Operation = (Hl7.Fhir.Model.TestReport.OperationComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2078,6 +2225,52 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "testScript": + TestScript = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "result": + ResultElement = (Code)value; + return this; + case "score": + ScoreElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "tester": + TesterElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "issued": + IssuedElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "participant": + Participant = (List)value; + return this; + case "setup": + Setup = (Hl7.Fhir.Model.TestReport.SetupComponent)value; + return this; + case "test": + Test = (List)value; + return this; + case "teardown": + Teardown = (Hl7.Fhir.Model.TestReport.TeardownComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/TestScript.cs b/src/Hl7.Fhir.STU3/Model/Generated/TestScript.cs index 73bf6f0b55..839d019789 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/TestScript.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/TestScript.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -467,6 +467,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "index": + IndexElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "profile": + Profile = (Hl7.Fhir.Model.Coding)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -624,6 +640,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "index": + IndexElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "profile": + Profile = (Hl7.Fhir.Model.Coding)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -761,6 +793,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "link": + Link = (List)value; + return this; + case "capability": + Capability = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -933,6 +981,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1287,6 +1351,37 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "required": + RequiredElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "validated": + ValidatedElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "origin": + OriginElement = (List)value; + return this; + case "destination": + DestinationElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "link": + LinkElement = (List)value; + return this; + case "capabilities": + Capabilities = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1486,6 +1581,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "autocreate": + AutocreateElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "autodelete": + AutodeleteElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "resource": + Resource = (Hl7.Fhir.Model.ResourceReference)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1894,6 +2008,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "defaultValue": + DefaultValueElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "expression": + ExpressionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "headerField": + HeaderFieldElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "hint": + HintElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "path": + PathElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "sourceId": + SourceIdElement = (Hl7.Fhir.Model.Id)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2040,6 +2188,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "resource": + Resource = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "param": + Param = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2213,6 +2377,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "value": + ValueElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2353,6 +2533,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "resource": + Resource = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "rule": + Rule = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2509,6 +2705,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "ruleId": + RuleIdElement = (Hl7.Fhir.Model.Id)value; + return this; + case "param": + Param = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2682,6 +2894,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "value": + ValueElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2794,6 +3022,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "action": + Action = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2929,6 +3170,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "operation": + Operation = (Hl7.Fhir.Model.TestScript.OperationComponent)value; + return this; + case "assert": + Assert = (Hl7.Fhir.Model.TestScript.AssertComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3618,6 +3875,64 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + Type = (Hl7.Fhir.Model.Coding)value; + return this; + case "resource": + ResourceElement = (Code)value; + return this; + case "label": + LabelElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "accept": + AcceptElement = (Code)value; + return this; + case "contentType": + ContentTypeElement = (Code)value; + return this; + case "destination": + DestinationElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "encodeRequestUrl": + EncodeRequestUrlElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "origin": + OriginElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "params": + ParamsElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "requestHeader": + RequestHeader = (List)value; + return this; + case "requestId": + RequestIdElement = (Hl7.Fhir.Model.Id)value; + return this; + case "responseId": + ResponseIdElement = (Hl7.Fhir.Model.Id)value; + return this; + case "sourceId": + SourceIdElement = (Hl7.Fhir.Model.Id)value; + return this; + case "targetId": + TargetIdElement = (Hl7.Fhir.Model.Id)value; + return this; + case "url": + UrlElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -3806,6 +4121,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "field": + FieldElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "value": + ValueElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -4812,6 +5143,88 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "label": + LabelElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "direction": + DirectionElement = (Code)value; + return this; + case "compareToSourceId": + CompareToSourceIdElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "compareToSourceExpression": + CompareToSourceExpressionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "compareToSourcePath": + CompareToSourcePathElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contentType": + ContentTypeElement = (Code)value; + return this; + case "expression": + ExpressionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "headerField": + HeaderFieldElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "minimumId": + MinimumIdElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "navigationLinks": + NavigationLinksElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "operator": + OperatorElement = (Code)value; + return this; + case "path": + PathElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "requestMethod": + RequestMethodElement = (Code)value; + return this; + case "requestURL": + RequestURLElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "resource": + ResourceElement = (Code)value; + return this; + case "response": + ResponseElement = (Code)value; + return this; + case "responseCode": + ResponseCodeElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "rule": + Rule = (Hl7.Fhir.Model.TestScript.ActionAssertRuleComponent)value; + return this; + case "ruleset": + Ruleset = (Hl7.Fhir.Model.TestScript.ActionAssertRulesetComponent)value; + return this; + case "sourceId": + SourceIdElement = (Hl7.Fhir.Model.Id)value; + return this; + case "validateProfileId": + ValidateProfileIdElement = (Hl7.Fhir.Model.Id)value; + return this; + case "value": + ValueElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "warningOnly": + WarningOnlyElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -4990,6 +5403,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "ruleId": + RuleIdElement = (Hl7.Fhir.Model.Id)value; + return this; + case "param": + Param = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -5164,6 +5593,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "value": + ValueElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -5320,6 +5765,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "rulesetId": + RulesetIdElement = (Hl7.Fhir.Model.Id)value; + return this; + case "rule": + Rule = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -5476,6 +5937,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "ruleId": + RuleIdElement = (Hl7.Fhir.Model.Id)value; + return this; + case "param": + Param = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -5650,6 +6127,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "value": + ValueElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -5840,6 +6333,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "action": + Action = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -5977,6 +6489,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "operation": + Operation = (Hl7.Fhir.Model.TestScript.OperationComponent)value; + return this; + case "assert": + Assert = (Hl7.Fhir.Model.TestScript.AssertComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -6092,6 +6620,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "action": + Action = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -6207,6 +6748,19 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "operation": + Operation = (Hl7.Fhir.Model.TestScript.OperationComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -7047,6 +7601,94 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (Hl7.Fhir.Model.Identifier)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "origin": + Origin = (List)value; + return this; + case "destination": + Destination = (List)value; + return this; + case "metadata": + Metadata = (Hl7.Fhir.Model.TestScript.MetadataComponent)value; + return this; + case "fixture": + Fixture = (List)value; + return this; + case "profile": + Profile = (List)value; + return this; + case "variable": + Variable = (List)value; + return this; + case "rule": + Rule = (List)value; + return this; + case "ruleset": + Ruleset = (List)value; + return this; + case "setup": + Setup = (Hl7.Fhir.Model.TestScript.SetupComponent)value; + return this; + case "test": + Test = (List)value; + return this; + case "teardown": + Teardown = (Hl7.Fhir.Model.TestScript.TeardownComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/Timing.cs b/src/Hl7.Fhir.STU3/Model/Generated/Timing.cs index 43636cc2ab..f863dd75f0 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/Timing.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/Timing.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -904,6 +904,61 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "bounds": + Bounds = (Hl7.Fhir.Model.DataType)value; + return this; + case "count": + CountElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "countMax": + CountMaxElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "duration": + DurationElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "durationMax": + DurationMaxElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "durationUnit": + DurationUnitElement = (Code)value; + return this; + case "frequency": + FrequencyElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "frequencyMax": + FrequencyMaxElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "period": + PeriodElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "periodMax": + PeriodMaxElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "periodUnit": + PeriodUnitElement = (Code)value; + return this; + case "dayOfWeek": + DayOfWeekElement = (List>)value; + return this; + case "timeOfDay": + TimeOfDayElement = (List)value; + return this; + case "when": + WhenElement = (List>)value; + return this; + case "offset": + OffsetElement = (Hl7.Fhir.Model.UnsignedInt)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1076,6 +1131,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "event": + EventElement = (List)value; + return this; + case "repeat": + Repeat = (Hl7.Fhir.Model.Timing.RepeatComponent)value; + return this; + case "code": + Code = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/TriggerDefinition.cs b/src/Hl7.Fhir.STU3/Model/Generated/TriggerDefinition.cs index ffff74d0b7..9e5cd35922 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/TriggerDefinition.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/TriggerDefinition.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -304,6 +304,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "type": + TypeElement = (Code)value; + return this; + case "eventName": + EventNameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "eventTiming": + EventTiming = (Hl7.Fhir.Model.DataType)value; + return this; + case "eventData": + EventData = (Hl7.Fhir.Model.DataRequirement)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/ValueSet.cs b/src/Hl7.Fhir.STU3/Model/Generated/ValueSet.cs index 0a42e58877..ea725d6494 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/ValueSet.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/ValueSet.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -265,6 +265,28 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "lockedDate": + LockedDateElement = (Hl7.Fhir.Model.Date)value; + return this; + case "inactive": + InactiveElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "include": + Include = (List)value; + return this; + case "exclude": + Exclude = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -522,6 +544,31 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "system": + SystemElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "concept": + Concept = (List)value; + return this; + case "filter": + Filter = (List)value; + return this; + case "valueSet": + ValueSetElement = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -720,6 +767,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "code": + CodeElement = (Hl7.Fhir.Model.Code)value; + return this; + case "display": + DisplayElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "designation": + Designation = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -916,6 +982,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "language": + LanguageElement = (Hl7.Fhir.Model.Code)value; + return this; + case "use": + Use = (Hl7.Fhir.Model.Coding)value; + return this; + case "value": + ValueElement = (Hl7.Fhir.Model.FhirString)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1133,6 +1218,25 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "property": + PropertyElement = (Hl7.Fhir.Model.Code)value; + return this; + case "op": + OpElement = (Code)value; + return this; + case "value": + ValueElement = (Hl7.Fhir.Model.Code)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1430,6 +1534,34 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + IdentifierElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "timestamp": + TimestampElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "total": + TotalElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "offset": + OffsetElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "parameter": + Parameter = (List)value; + return this; + case "contains": + Contains = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1591,6 +1723,22 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "value": + Value = (Hl7.Fhir.Model.DataType)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1962,6 +2110,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "system": + SystemElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "abstract": + AbstractElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "inactive": + InactiveElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "code": + CodeElement = (Hl7.Fhir.Model.Code)value; + return this; + case "display": + DisplayElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "designation": + Designation = (List)value; + return this; + case "contains": + Contains = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -2687,6 +2869,73 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "url": + UrlElement = (Hl7.Fhir.Model.FhirUri)value; + return this; + case "identifier": + Identifier = (List)value; + return this; + case "version": + VersionElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "name": + NameElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "title": + TitleElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "experimental": + ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "date": + DateElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "publisher": + PublisherElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "contact": + Contact = (List)value; + return this; + case "description": + DescriptionElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "useContext": + UseContext = (List)value; + return this; + case "jurisdiction": + Jurisdiction = (List)value; + return this; + case "immutable": + ImmutableElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "purpose": + PurposeElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "copyright": + CopyrightElement = (Hl7.Fhir.Model.Markdown)value; + return this; + case "extensible": + ExtensibleElement = (Hl7.Fhir.Model.FhirBoolean)value; + return this; + case "compose": + Compose = (Hl7.Fhir.Model.ValueSet.ComposeComponent)value; + return this; + case "expansion": + Expansion = (Hl7.Fhir.Model.ValueSet.ExpansionComponent)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/VisionPrescription.cs b/src/Hl7.Fhir.STU3/Model/Generated/VisionPrescription.cs index 215d054f73..b49b8bf86e 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/VisionPrescription.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/VisionPrescription.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 using System; using System.Collections.Generic; @@ -736,6 +736,61 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "product": + Product = (Hl7.Fhir.Model.CodeableConcept)value; + return this; + case "eye": + EyeElement = (Code)value; + return this; + case "sphere": + SphereElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "cylinder": + CylinderElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "axis": + AxisElement = (Hl7.Fhir.Model.Integer)value; + return this; + case "prism": + PrismElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "base": + BaseElement = (Code)value; + return this; + case "add": + AddElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "power": + PowerElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "backCurve": + BackCurveElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "diameter": + DiameterElement = (Hl7.Fhir.Model.FhirDecimal)value; + return this; + case "duration": + Duration = (Hl7.Fhir.Model.Quantity)value; + return this; + case "color": + ColorElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "brand": + BrandElement = (Hl7.Fhir.Model.FhirString)value; + return this; + case "note": + Note = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; @@ -1044,6 +1099,40 @@ protected override bool TryGetValue(string key, out object value) } + protected override Base SetValue(string key, object value) + { + switch (key) + { + case "identifier": + Identifier = (List)value; + return this; + case "status": + StatusElement = (Code)value; + return this; + case "patient": + Patient = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "encounter": + Encounter = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "dateWritten": + DateWrittenElement = (Hl7.Fhir.Model.FhirDateTime)value; + return this; + case "prescriber": + Prescriber = (Hl7.Fhir.Model.ResourceReference)value; + return this; + case "reason": + Reason = (Hl7.Fhir.Model.DataType)value; + return this; + case "dispense": + Dispense = (List)value; + return this; + default: + return base.SetValue(key, value); + } + + } + protected override IEnumerable> GetElementPairs() { foreach (var kvp in base.GetElementPairs()) yield return kvp; diff --git a/src/Hl7.Fhir.STU3/Model/Generated/_GeneratorLog.cs b/src/Hl7.Fhir.STU3/Model/Generated/_GeneratorLog.cs index 21c957cad3..1a06b59c33 100644 --- a/src/Hl7.Fhir.STU3/Model/Generated/_GeneratorLog.cs +++ b/src/Hl7.Fhir.STU3/Model/Generated/_GeneratorLog.cs @@ -1,5 +1,5 @@ // -// Contents of: hl7.fhir.r3.expansions#3.0.2, hl7.fhir.r3.core#3.0.2 +// Contents of: hl7.fhir.r3.expansions@3.0.2, hl7.fhir.r3.core@3.0.2 // Generated Shared Enumeration: ActionCardinalityBehavior (http://hl7.org/fhir/ValueSet/action-cardinality-behavior) // Used in model class (resource): PlanDefinition.action.cardinalityBehavior diff --git a/src/Hl7.Fhir.Support.Poco.Tests/Model/PocoDictionaryTests.cs b/src/Hl7.Fhir.Support.Poco.Tests/Model/PocoDictionaryTests.cs new file mode 100644 index 0000000000..6ddad7be14 --- /dev/null +++ b/src/Hl7.Fhir.Support.Poco.Tests/Model/PocoDictionaryTests.cs @@ -0,0 +1,83 @@ +using FluentAssertions; +using Hl7.Fhir.Model; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System; +using System.Collections.Generic; +using IRO = System.Collections.Generic.IReadOnlyDictionary; + +namespace Hl7.Fhir.Tests.Model; + +[TestClass] +public class PocoDictionaryTests +{ + [TestMethod] + public void DynamicResourceAcceptsEverything() + { + var dr = new DynamicResource() + { + ["name"] = "John", + ["age"] = 23, + ["alive"] = true, + ["dob"] = new Date(1972, 11, 30), +#pragma warning disable CA2244 + ["weight"] = 75.5m, +#pragma warning restore CA2244 + ["weight"] = 80.0m + }; + + dr["name"].Should().Be("John"); + dr["age"].Should().Be(23); + dr["alive"].Should().Be(true); + dr["dob"].Should().BeOfType().Which.Value.Should().Be("1972-11-30"); + dr["weight"].Should().Be(80.0m); + + dr["name"] = null!; + dr.AsReadOnlyDictionary().ContainsKey("name").Should().BeFalse(); + } + + [TestMethod] + public void ResourceAcceptsOverflow() + { + var pat = new Patient().AsDictionary(); + + // setting an existing property to an incorrect type should fail. + Assert.ThrowsException(() => pat["name"] = "John"); + + // Setting it correctly should work + pat["name"] = new List { new HumanName().WithGiven("John") }; + + // Adding a non-existing property should work + pat["weight"] = 80.0m; + + pat["name"].Should().BeOfType>(); + pat["weight"].Should().Be(80.0m); + + pat["name"] = null!; + pat["weight"] = null!; + pat.Should().BeEmpty(); + } + + [TestMethod] + public void CanReadSpecialProperties() + { + var patient = new Patient() + { + Text = new Narrative { Div = "
hello
" }, + Active = true, + Meta = new Meta { ElementId = "4" }, + }; + + patient.AddExtension("http://nu.nl", new FhirBoolean(true)); + var pat = patient.AsReadOnlyDictionary(); + + pat["active"].Should().BeOfType().And + .BeAssignableTo().Which["value"].Should().Be(true); + pat["text"].Should().BeOfType().And + .BeAssignableTo().Which["div"].Should().BeOfType().And + .BeAssignableTo().Which["value"].Should().Be("
hello
"); + pat["meta"].Should().BeOfType().And + .BeAssignableTo().Which["id"].Should().Be("4"); + var extension = pat["extension"].Should().BeOfType>().Which.Should().ContainSingle().Subject; + extension.Should().BeAssignableTo().Which["url"].Should().Be("http://nu.nl"); + } +} \ No newline at end of file diff --git a/src/Hl7.Fhir.Support.Tests/FhirPath/FhirPathTests.cs b/src/Hl7.Fhir.Support.Tests/FhirPath/FhirPathTests.cs index 873132117e..c8f8e94ef1 100644 --- a/src/Hl7.Fhir.Support.Tests/FhirPath/FhirPathTests.cs +++ b/src/Hl7.Fhir.Support.Tests/FhirPath/FhirPathTests.cs @@ -39,7 +39,7 @@ public void ResolveOnEmptyTest() { // resolve should handle an empty collection as input var evaluator = _compiler.Compile("{}.resolve()"); - var result = evaluator(null, FhirEvaluationContext.CreateDefault()); + var result = evaluator(null, new FhirEvaluationContext()); Assert.IsFalse(result.Any()); } @@ -56,7 +56,7 @@ public void ResolveOnEmptyTest() public void HtmlChecks(string xml, bool expected, string because) { var evaluator = _compiler.Compile("htmlChecks()"); - evaluator.Predicate(ElementNode.ForPrimitive(xml), FhirEvaluationContext.CreateDefault()).Should().Be(expected, because); + evaluator.Predicate(ElementNode.ForPrimitive(xml), new FhirEvaluationContext()).Should().Be(expected, because); } [DataTestMethod] @@ -150,7 +150,7 @@ public static IEnumerable AllTestCases() => public void AssertFhirPathTestcases(string expression, bool expected) { var evaluator = _compiler.Compile(expression); - var result = evaluator(null, FhirEvaluationContext.CreateDefault()); + var result = evaluator(null, new FhirEvaluationContext()); if (result.Any()) { @@ -165,4 +165,4 @@ public void AssertFhirPathTestcases(string expression, bool expected) } -} +} \ No newline at end of file diff --git a/src/Hl7.FhirPath.Tests/Functions/FunctionsTests.cs b/src/Hl7.FhirPath.Tests/Functions/FunctionsTests.cs index 3c750631c1..1744aec2e6 100644 --- a/src/Hl7.FhirPath.Tests/Functions/FunctionsTests.cs +++ b/src/Hl7.FhirPath.Tests/Functions/FunctionsTests.cs @@ -517,8 +517,7 @@ public void AssertTestcases(string expression, bool expected, bool invalid = fal public void TraceTest() { ITypedElement dummy = ElementNode.ForPrimitive(true); - var ctx = EvaluationContext.CreateDefault(); - ctx.Tracer = tracer; + var ctx = new EvaluationContext { Tracer = tracer }; dummy.IsBoolean("(1 | 2).trace('test').empty()", true, ctx); static void tracer(string name, IEnumerable list) @@ -578,4 +577,4 @@ public void TestFhirPathRepeatsStringLiteral() result.Should().ContainSingle(ite => ((string)ite.Value) == "teststring"); } } -} +} \ No newline at end of file diff --git a/src/Hl7.FhirPath.Tests/Tests/EnviromentTests.cs b/src/Hl7.FhirPath.Tests/Tests/EnviromentTests.cs index b0be0fe2e0..a458a89a30 100644 --- a/src/Hl7.FhirPath.Tests/Tests/EnviromentTests.cs +++ b/src/Hl7.FhirPath.Tests/Tests/EnviromentTests.cs @@ -15,7 +15,7 @@ public void TestEnvironment() var compiler = new FhirPathCompiler(); var expr = compiler.Compile("%var = 1"); - expr.IsTrue(null, new EvaluationContext(null, null, new Dictionary> { { "var", new [] { ElementNode.ForPrimitive(1) } } })); - expr.IsBoolean(false, null, new EvaluationContext(null, null, new Dictionary> { { "var", new[] { ElementNode.ForPrimitive(2) } } })); + expr.IsTrue(null, new EvaluationContext { Environment = new Dictionary> { { "var", new [] { ElementNode.ForPrimitive(1) } } } }); + expr.IsBoolean(false, null, new EvaluationContext { Environment = new Dictionary> { { "var", new[] { ElementNode.ForPrimitive(2) } } } }); } } \ No newline at end of file