/// <summary> /// Deserialize a JSON property /// </summary> public new void DeserializeJsonProperty(ref Utf8JsonReader reader, JsonSerializerOptions options, string propertyName) { switch (propertyName) { case "expiry": Expiry = reader.GetString(); break; case "_expiry": _Expiry = new fhirCsR4.Models.Element(); _Expiry.DeserializeJson(ref reader, options); break; case "identifier": Identifier = new fhirCsR4.Models.Identifier(); Identifier.DeserializeJson(ref reader, options); break; case "quantity": Quantity = new fhirCsR4.Models.Quantity(); Quantity.DeserializeJson(ref reader, options); break; default: ((fhirCsR4.Models.BackboneElement) this).DeserializeJsonProperty(ref reader, options, propertyName); break; } }
/// <summary> /// Deserialize a JSON property /// </summary> public new void DeserializeJsonProperty(ref Utf8JsonReader reader, JsonSerializerOptions options, string propertyName) { switch (propertyName) { case "supportingInformation": SupportingInformation = reader.GetString(); break; case "_supportingInformation": _SupportingInformation = new fhirCsR4.Models.Element(); _SupportingInformation.DeserializeJson(ref reader, options); break; case "tissue": Tissue = new fhirCsR4.Models.CodeableConcept(); Tissue.DeserializeJson(ref reader, options); break; case "value": Value = new fhirCsR4.Models.Quantity(); Value.DeserializeJson(ref reader, options); break; default: ((fhirCsR4.Models.BackboneElement) this).DeserializeJsonProperty(ref reader, options, propertyName); break; } }
/// <summary> /// Deserialize a JSON property /// </summary> public new void DeserializeJsonProperty(ref Utf8JsonReader reader, JsonSerializerOptions options, string propertyName) { switch (propertyName) { case "bodySite": BodySite = new fhirCsR4.Models.CodeableConcept(); BodySite.DeserializeJson(ref reader, options); break; case "collectedDateTime": CollectedDateTime = reader.GetString(); break; case "_collectedDateTime": _CollectedDateTime = new fhirCsR4.Models.Element(); _CollectedDateTime.DeserializeJson(ref reader, options); break; case "collectedPeriod": CollectedPeriod = new fhirCsR4.Models.Period(); CollectedPeriod.DeserializeJson(ref reader, options); break; case "collector": Collector = new fhirCsR4.Models.Reference(); Collector.DeserializeJson(ref reader, options); break; case "duration": Duration = new fhirCsR4.Models.Duration(); Duration.DeserializeJson(ref reader, options); break; case "fastingStatusCodeableConcept": FastingStatusCodeableConcept = new fhirCsR4.Models.CodeableConcept(); FastingStatusCodeableConcept.DeserializeJson(ref reader, options); break; case "fastingStatusDuration": FastingStatusDuration = new fhirCsR4.Models.Duration(); FastingStatusDuration.DeserializeJson(ref reader, options); break; case "method": Method = new fhirCsR4.Models.CodeableConcept(); Method.DeserializeJson(ref reader, options); break; case "quantity": Quantity = new fhirCsR4.Models.Quantity(); Quantity.DeserializeJson(ref reader, options); break; default: ((fhirCsR4.Models.BackboneElement) this).DeserializeJsonProperty(ref reader, options, propertyName); break; } }
/// <summary> /// Deserialize a JSON property /// </summary> public new void DeserializeJsonProperty(ref Utf8JsonReader reader, JsonSerializerOptions options, string propertyName) { switch (propertyName) { case "denominator": Denominator = new fhirCsR4.Models.Quantity(); Denominator.DeserializeJson(ref reader, options); break; case "numerator": Numerator = new fhirCsR4.Models.Quantity(); Numerator.DeserializeJson(ref reader, options); break; default: ((fhirCsR4.Models.Element) this).DeserializeJsonProperty(ref reader, options, propertyName); break; } }
/// <summary> /// Deserialize a JSON property /// </summary> public new void DeserializeJsonProperty(ref Utf8JsonReader reader, JsonSerializerOptions options, string propertyName) { switch (propertyName) { case "high": High = new fhirCsR4.Models.Quantity(); High.DeserializeJson(ref reader, options); break; case "low": Low = new fhirCsR4.Models.Quantity(); Low.DeserializeJson(ref reader, options); break; default: ((fhirCsR4.Models.Element) this).DeserializeJsonProperty(ref reader, options, propertyName); break; } }
/// <summary> /// Deserialize a JSON property /// </summary> public new void DeserializeJsonProperty(ref Utf8JsonReader reader, JsonSerializerOptions options, string propertyName) { switch (propertyName) { case "itemCodeableConcept": ItemCodeableConcept = new fhirCsR4.Models.CodeableConcept(); ItemCodeableConcept.DeserializeJson(ref reader, options); break; case "itemReference": ItemReference = new fhirCsR4.Models.Reference(); ItemReference.DeserializeJson(ref reader, options); break; case "quantity": Quantity = new fhirCsR4.Models.Quantity(); Quantity.DeserializeJson(ref reader, options); break; default: ((fhirCsR4.Models.BackboneElement) this).DeserializeJsonProperty(ref reader, options, propertyName); break; } }
/// <summary> /// Deserialize a JSON property /// </summary> public new void DeserializeJsonProperty(ref Utf8JsonReader reader, JsonSerializerOptions options, string propertyName) { switch (propertyName) { case "color": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Color = new List <string>(); while (reader.TokenType != JsonTokenType.EndArray) { Color.Add(reader.GetString()); if (!reader.Read()) { throw new JsonException(); } } if (Color.Count == 0) { Color = null; } break; case "_color": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } _Color = new List <Element>(); while (reader.TokenType != JsonTokenType.EndArray) { fhirCsR4.Models.Element obj_Color = new fhirCsR4.Models.Element(); obj_Color.DeserializeJson(ref reader, options); _Color.Add(obj_Color); if (!reader.Read()) { throw new JsonException(); } } if (_Color.Count == 0) { _Color = null; } break; case "depth": Depth = new fhirCsR4.Models.Quantity(); Depth.DeserializeJson(ref reader, options); break; case "externalDiameter": ExternalDiameter = new fhirCsR4.Models.Quantity(); ExternalDiameter.DeserializeJson(ref reader, options); break; case "height": Height = new fhirCsR4.Models.Quantity(); Height.DeserializeJson(ref reader, options); break; case "image": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Image = new List <Attachment>(); while (reader.TokenType != JsonTokenType.EndArray) { fhirCsR4.Models.Attachment objImage = new fhirCsR4.Models.Attachment(); objImage.DeserializeJson(ref reader, options); Image.Add(objImage); if (!reader.Read()) { throw new JsonException(); } } if (Image.Count == 0) { Image = null; } break; case "imprint": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Imprint = new List <string>(); while (reader.TokenType != JsonTokenType.EndArray) { Imprint.Add(reader.GetString()); if (!reader.Read()) { throw new JsonException(); } } if (Imprint.Count == 0) { Imprint = null; } break; case "_imprint": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } _Imprint = new List <Element>(); while (reader.TokenType != JsonTokenType.EndArray) { fhirCsR4.Models.Element obj_Imprint = new fhirCsR4.Models.Element(); obj_Imprint.DeserializeJson(ref reader, options); _Imprint.Add(obj_Imprint); if (!reader.Read()) { throw new JsonException(); } } if (_Imprint.Count == 0) { _Imprint = null; } break; case "nominalVolume": NominalVolume = new fhirCsR4.Models.Quantity(); NominalVolume.DeserializeJson(ref reader, options); break; case "scoring": Scoring = new fhirCsR4.Models.CodeableConcept(); Scoring.DeserializeJson(ref reader, options); break; case "shape": Shape = reader.GetString(); break; case "_shape": _Shape = new fhirCsR4.Models.Element(); _Shape.DeserializeJson(ref reader, options); break; case "weight": Weight = new fhirCsR4.Models.Quantity(); Weight.DeserializeJson(ref reader, options); break; case "width": Width = new fhirCsR4.Models.Quantity(); Width.DeserializeJson(ref reader, options); break; default: ((fhirCsR4.Models.BackboneElement) this).DeserializeJsonProperty(ref reader, options, propertyName); break; } }