/// <summary> /// Deserialize a JSON property /// </summary> public new void DeserializeJsonProperty(ref Utf8JsonReader reader, JsonSerializerOptions options, string propertyName) { switch (propertyName) { case "basis": Basis = reader.GetString(); break; case "_basis": _Basis = new fhirCsR4.Models.Element(); _Basis.DeserializeJson(ref reader, options); break; 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; 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 "country": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Country = new List <CodeableConcept>(); while (reader.TokenType != JsonTokenType.EndArray) { fhirCsR4.Models.CodeableConcept objCountry = new fhirCsR4.Models.CodeableConcept(); objCountry.DeserializeJson(ref reader, options); Country.Add(objCountry); if (!reader.Read()) { throw new JsonException(); } } if (Country.Count == 0) { Country = null; } break; case "measurementPoint": MeasurementPoint = reader.GetString(); break; case "_measurementPoint": _MeasurementPoint = new fhirCsR4.Models.Element(); _MeasurementPoint.DeserializeJson(ref reader, options); break; case "strength": Strength = new fhirCsR4.Models.Ratio(); Strength.DeserializeJson(ref reader, options); break; case "strengthLowLimit": StrengthLowLimit = new fhirCsR4.Models.Ratio(); StrengthLowLimit.DeserializeJson(ref reader, options); break; case "substance": Substance = new fhirCsR4.Models.CodeableConcept(); Substance.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 "conversionFactor": ConversionFactor = reader.GetDecimal(); break; case "_conversionFactor": _ConversionFactor = new fhirCsR4.Models.Element(); _ConversionFactor.DeserializeJson(ref reader, options); break; case "customaryUnit": CustomaryUnit = new fhirCsR4.Models.CodeableConcept(); CustomaryUnit.DeserializeJson(ref reader, options); break; case "decimalPrecision": DecimalPrecision = reader.GetInt32(); break; case "unit": Unit = new fhirCsR4.Models.CodeableConcept(); Unit.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 "name": Name = reader.GetString(); break; case "_name": _Name = new fhirCsR4.Models.Element(); _Name.DeserializeJson(ref reader, options); break; case "type": Type = new fhirCsR4.Models.CodeableConcept(); Type.DeserializeJson(ref reader, options); break; case "value": Value = reader.GetString(); break; case "_value": _Value = new fhirCsR4.Models.Element(); _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 "code": Code = new fhirCsR4.Models.CodeableConcept(); Code.DeserializeJson(ref reader, options); break; case "valueCodeableConcept": ValueCodeableConcept = new fhirCsR4.Models.CodeableConcept(); ValueCodeableConcept.DeserializeJson(ref reader, options); break; case "valueQuantity": ValueQuantity = new fhirCsR4.Models.Quantity(); ValueQuantity.DeserializeJson(ref reader, options); break; case "valueRange": ValueRange = new fhirCsR4.Models.Range(); ValueRange.DeserializeJson(ref reader, options); break; case "valueBoolean": ValueBoolean = reader.GetBoolean(); 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 "date": Date = reader.GetString(); break; case "_date": _Date = new fhirCsR4.Models.Element(); _Date.DeserializeJson(ref reader, options); break; case "deleted": Deleted = reader.GetBoolean(); break; case "flag": Flag = new fhirCsR4.Models.CodeableConcept(); Flag.DeserializeJson(ref reader, options); break; case "item": Item = new fhirCsR4.Models.Reference(); Item.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 "assessment": Assessment = new fhirCsR4.Models.CodeableConcept(); Assessment.DeserializeJson(ref reader, options); break; case "author": Author = new fhirCsR4.Models.Reference(); Author.DeserializeJson(ref reader, options); break; case "method": Method = new fhirCsR4.Models.CodeableConcept(); Method.DeserializeJson(ref reader, options); break; case "productRelatedness": ProductRelatedness = reader.GetString(); break; case "_productRelatedness": _ProductRelatedness = new fhirCsR4.Models.Element(); _ProductRelatedness.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 "ageRange": AgeRange = new fhirCsR4.Models.Range(); AgeRange.DeserializeJson(ref reader, options); break; case "ageCodeableConcept": AgeCodeableConcept = new fhirCsR4.Models.CodeableConcept(); AgeCodeableConcept.DeserializeJson(ref reader, options); break; case "gender": Gender = new fhirCsR4.Models.CodeableConcept(); Gender.DeserializeJson(ref reader, options); break; case "physiologicalCondition": PhysiologicalCondition = new fhirCsR4.Models.CodeableConcept(); PhysiologicalCondition.DeserializeJson(ref reader, options); break; case "race": Race = new fhirCsR4.Models.CodeableConcept(); Race.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 "action": Action = new fhirCsR4.Models.CodeableConcept(); Action.DeserializeJson(ref reader, options); break; case "author": Author = new fhirCsR4.Models.Reference(); Author.DeserializeJson(ref reader, options); break; case "date": Date = reader.GetString(); break; case "_date": _Date = new fhirCsR4.Models.Element(); _Date.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 "isActive": IsActive = reader.GetBoolean(); break; 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 "strength": Strength = new fhirCsR4.Models.Ratio(); Strength.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 "author": Author = new fhirCsR4.Models.Reference(); Author.DeserializeJson(ref reader, options); break; case "code": Code = new fhirCsR4.Models.CodeableConcept(); Code.DeserializeJson(ref reader, options); break; case "created": Created = reader.GetString(); break; case "_created": _Created = new fhirCsR4.Models.Element(); _Created.DeserializeJson(ref reader, options); break; case "identifier": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Identifier = new List <Identifier>(); while (reader.TokenType != JsonTokenType.EndArray) { fhirCsR4.Models.Identifier objIdentifier = new fhirCsR4.Models.Identifier(); objIdentifier.DeserializeJson(ref reader, options); Identifier.Add(objIdentifier); if (!reader.Read()) { throw new JsonException(); } } if (Identifier.Count == 0) { Identifier = null; } break; case "subject": Subject = new fhirCsR4.Models.Reference(); Subject.DeserializeJson(ref reader, options); break; default: ((fhirCsR4.Models.DomainResource) 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 "amount": Amount = new fhirCsR4.Models.SubstanceAmount(); Amount.DeserializeJson(ref reader, options); break; case "isDefining": IsDefining = reader.GetBoolean(); break; case "material": Material = new fhirCsR4.Models.CodeableConcept(); Material.DeserializeJson(ref reader, options); break; case "type": Type = new fhirCsR4.Models.CodeableConcept(); Type.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 "instruction": Instruction = reader.GetString(); break; case "_instruction": _Instruction = new fhirCsR4.Models.Element(); _Instruction.DeserializeJson(ref reader, options); break; case "maxDuration": MaxDuration = new fhirCsR4.Models.Duration(); MaxDuration.DeserializeJson(ref reader, options); break; case "temperatureQualifier": TemperatureQualifier = new fhirCsR4.Models.CodeableConcept(); TemperatureQualifier.DeserializeJson(ref reader, options); break; case "temperatureRange": TemperatureRange = new fhirCsR4.Models.Range(); TemperatureRange.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 "areaOfHybridisation": AreaOfHybridisation = reader.GetString(); break; case "_areaOfHybridisation": _AreaOfHybridisation = new fhirCsR4.Models.Element(); _AreaOfHybridisation.DeserializeJson(ref reader, options); break; case "numberOfSubunits": NumberOfSubunits = reader.GetInt32(); break; case "oligoNucleotideType": OligoNucleotideType = new fhirCsR4.Models.CodeableConcept(); OligoNucleotideType.DeserializeJson(ref reader, options); break; case "sequenceType": SequenceType = new fhirCsR4.Models.CodeableConcept(); SequenceType.DeserializeJson(ref reader, options); break; case "subunit": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Subunit = new List <SubstanceNucleicAcidSubunit>(); while (reader.TokenType != JsonTokenType.EndArray) { fhirCsR4.Models.SubstanceNucleicAcidSubunit objSubunit = new fhirCsR4.Models.SubstanceNucleicAcidSubunit(); objSubunit.DeserializeJson(ref reader, options); Subunit.Add(objSubunit); if (!reader.Read()) { throw new JsonException(); } } if (Subunit.Count == 0) { Subunit = null; } break; default: ((fhirCsR4.Models.DomainResource) 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 "code": Code = new fhirCsR4.Models.CodeableConcept(); Code.DeserializeJson(ref reader, options); break; case "identifier": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Identifier = new List <Identifier>(); while (reader.TokenType != JsonTokenType.EndArray) { fhirCsR4.Models.Identifier objIdentifier = new fhirCsR4.Models.Identifier(); objIdentifier.DeserializeJson(ref reader, options); Identifier.Add(objIdentifier); if (!reader.Read()) { throw new JsonException(); } } if (Identifier.Count == 0) { Identifier = null; } break; case "issuer": Issuer = new fhirCsR4.Models.Reference(); Issuer.DeserializeJson(ref reader, options); break; case "period": Period = new fhirCsR4.Models.Period(); Period.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 "member": Member = new fhirCsR4.Models.Reference(); Member.DeserializeJson(ref reader, options); break; case "onBehalfOf": OnBehalfOf = new fhirCsR4.Models.Reference(); OnBehalfOf.DeserializeJson(ref reader, options); break; case "period": Period = new fhirCsR4.Models.Period(); Period.DeserializeJson(ref reader, options); break; case "role": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Role = new List <CodeableConcept>(); while (reader.TokenType != JsonTokenType.EndArray) { fhirCsR4.Models.CodeableConcept objRole = new fhirCsR4.Models.CodeableConcept(); objRole.DeserializeJson(ref reader, options); Role.Add(objRole); if (!reader.Read()) { throw new JsonException(); } } if (Role.Count == 0) { Role = null; } 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 "address": Address = new fhirCsR4.Models.Address(); Address.DeserializeJson(ref reader, options); break; case "name": Name = new fhirCsR4.Models.HumanName(); Name.DeserializeJson(ref reader, options); break; case "purpose": Purpose = new fhirCsR4.Models.CodeableConcept(); Purpose.DeserializeJson(ref reader, options); break; case "telecom": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Telecom = new List <ContactPoint>(); while (reader.TokenType != JsonTokenType.EndArray) { fhirCsR4.Models.ContactPoint objTelecom = new fhirCsR4.Models.ContactPoint(); objTelecom.DeserializeJson(ref reader, options); Telecom.Add(objTelecom); if (!reader.Read()) { throw new JsonException(); } } if (Telecom.Count == 0) { Telecom = null; } 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 "exception": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Exception = new List <CoverageCostToBeneficiaryException>(); while (reader.TokenType != JsonTokenType.EndArray) { fhirCsR4.Models.CoverageCostToBeneficiaryException objException = new fhirCsR4.Models.CoverageCostToBeneficiaryException(); objException.DeserializeJson(ref reader, options); Exception.Add(objException); if (!reader.Read()) { throw new JsonException(); } } if (Exception.Count == 0) { Exception = null; } break; case "type": Type = new fhirCsR4.Models.CodeableConcept(); Type.DeserializeJson(ref reader, options); break; case "valueQuantity": ValueQuantity = new fhirCsR4.Models.Quantity(); ValueQuantity.DeserializeJson(ref reader, options); break; case "valueMoney": ValueMoney = new fhirCsR4.Models.Money(); ValueMoney.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 "code": Code = new fhirCsR4.Models.CodeableConcept(); Code.DeserializeJson(ref reader, options); break; case "confidentiality": Confidentiality = new fhirCsR4.Models.CodeableConcept(); Confidentiality.DeserializeJson(ref reader, options); break; case "group": Group = new fhirCsR4.Models.CodeableConcept(); Group.DeserializeJson(ref reader, options); break; case "strength": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Strength = new List <MedicinalProductIngredientSpecifiedSubstanceStrength>(); while (reader.TokenType != JsonTokenType.EndArray) { fhirCsR4.Models.MedicinalProductIngredientSpecifiedSubstanceStrength objStrength = new fhirCsR4.Models.MedicinalProductIngredientSpecifiedSubstanceStrength(); objStrength.DeserializeJson(ref reader, options); Strength.Add(objStrength); if (!reader.Read()) { throw new JsonException(); } } if (Strength.Count == 0) { Strength = null; } 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 "assigner": Assigner = new fhirCsR4.Models.Reference(); Assigner.DeserializeJson(ref reader, options); break; case "period": Period = new fhirCsR4.Models.Period(); Period.DeserializeJson(ref reader, options); break; case "system": System = reader.GetString(); break; case "_system": _System = new fhirCsR4.Models.Element(); _System.DeserializeJson(ref reader, options); break; case "type": Type = new fhirCsR4.Models.CodeableConcept(); Type.DeserializeJson(ref reader, options); break; case "use": Use = reader.GetString(); break; case "_use": _Use = new fhirCsR4.Models.Element(); _Use.DeserializeJson(ref reader, options); break; case "value": Value = reader.GetString(); break; case "_value": _Value = new fhirCsR4.Models.Element(); _Value.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 "identifier": Identifier = new fhirCsR4.Models.Identifier(); Identifier.DeserializeJson(ref reader, options); break; case "period": Period = new fhirCsR4.Models.Quantity(); Period.DeserializeJson(ref reader, options); break; case "specialPrecautionsForStorage": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } SpecialPrecautionsForStorage = new List <CodeableConcept>(); while (reader.TokenType != JsonTokenType.EndArray) { fhirCsR4.Models.CodeableConcept objSpecialPrecautionsForStorage = new fhirCsR4.Models.CodeableConcept(); objSpecialPrecautionsForStorage.DeserializeJson(ref reader, options); SpecialPrecautionsForStorage.Add(objSpecialPrecautionsForStorage); if (!reader.Read()) { throw new JsonException(); } } if (SpecialPrecautionsForStorage.Count == 0) { SpecialPrecautionsForStorage = null; } break; case "type": Type = new fhirCsR4.Models.CodeableConcept(); Type.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 "chargeItemReference": ChargeItemReference = new fhirCsR4.Models.Reference(); ChargeItemReference.DeserializeJson(ref reader, options); break; case "chargeItemCodeableConcept": ChargeItemCodeableConcept = new fhirCsR4.Models.CodeableConcept(); ChargeItemCodeableConcept.DeserializeJson(ref reader, options); break; case "priceComponent": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } PriceComponent = new List <InvoiceLineItemPriceComponent>(); while (reader.TokenType != JsonTokenType.EndArray) { fhirCsR4.Models.InvoiceLineItemPriceComponent objPriceComponent = new fhirCsR4.Models.InvoiceLineItemPriceComponent(); objPriceComponent.DeserializeJson(ref reader, options); PriceComponent.Add(objPriceComponent); if (!reader.Read()) { throw new JsonException(); } } if (PriceComponent.Count == 0) { PriceComponent = null; } break; case "sequence": Sequence = reader.GetUInt32(); 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 "allowedUnsignedInt": AllowedUnsignedInt = reader.GetUInt32(); break; case "allowedString": AllowedString = reader.GetString(); break; case "_allowedString": _AllowedString = new fhirCsR4.Models.Element(); _AllowedString.DeserializeJson(ref reader, options); break; case "allowedMoney": AllowedMoney = new fhirCsR4.Models.Money(); AllowedMoney.DeserializeJson(ref reader, options); break; case "type": Type = new fhirCsR4.Models.CodeableConcept(); Type.DeserializeJson(ref reader, options); break; case "usedUnsignedInt": UsedUnsignedInt = reader.GetUInt32(); break; case "usedString": UsedString = reader.GetString(); break; case "_usedString": _UsedString = new fhirCsR4.Models.Element(); _UsedString.DeserializeJson(ref reader, options); break; case "usedMoney": UsedMoney = new fhirCsR4.Models.Money(); UsedMoney.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 "dose": Dose = new fhirCsR4.Models.Quantity(); Dose.DeserializeJson(ref reader, options); break; case "method": Method = new fhirCsR4.Models.CodeableConcept(); Method.DeserializeJson(ref reader, options); break; case "rateRatio": RateRatio = new fhirCsR4.Models.Ratio(); RateRatio.DeserializeJson(ref reader, options); break; case "rateQuantity": RateQuantity = new fhirCsR4.Models.Quantity(); RateQuantity.DeserializeJson(ref reader, options); break; case "route": Route = new fhirCsR4.Models.CodeableConcept(); Route.DeserializeJson(ref reader, options); break; case "site": Site = new fhirCsR4.Models.CodeableConcept(); Site.DeserializeJson(ref reader, options); break; case "text": Text = reader.GetString(); break; case "_text": _Text = new fhirCsR4.Models.Element(); _Text.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 "amountQuantity": AmountQuantity = new fhirCsR4.Models.Quantity(); AmountQuantity.DeserializeJson(ref reader, options); break; case "amountRange": AmountRange = new fhirCsR4.Models.Range(); AmountRange.DeserializeJson(ref reader, options); break; case "amountString": AmountString = reader.GetString(); break; case "_amountString": _AmountString = new fhirCsR4.Models.Element(); _AmountString.DeserializeJson(ref reader, options); break; case "amountText": AmountText = reader.GetString(); break; case "_amountText": _AmountText = new fhirCsR4.Models.Element(); _AmountText.DeserializeJson(ref reader, options); break; case "amountType": AmountType = new fhirCsR4.Models.CodeableConcept(); AmountType.DeserializeJson(ref reader, options); break; case "referenceRange": ReferenceRange = new fhirCsR4.Models.SubstanceAmountReferenceRange(); ReferenceRange.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 "gene": Gene = new fhirCsR4.Models.CodeableConcept(); Gene.DeserializeJson(ref reader, options); break; case "geneSequenceOrigin": GeneSequenceOrigin = new fhirCsR4.Models.CodeableConcept(); GeneSequenceOrigin.DeserializeJson(ref reader, options); break; case "source": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Source = new List <Reference>(); while (reader.TokenType != JsonTokenType.EndArray) { fhirCsR4.Models.Reference objSource = new fhirCsR4.Models.Reference(); objSource.DeserializeJson(ref reader, options); Source.Add(objSource); if (!reader.Read()) { throw new JsonException(); } } if (Source.Count == 0) { Source = null; } 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 "assessment": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Assessment = new List <Reference>(); while (reader.TokenType != JsonTokenType.EndArray) { fhirCsR4.Models.Reference objAssessment = new fhirCsR4.Models.Reference(); objAssessment.DeserializeJson(ref reader, options); Assessment.Add(objAssessment); if (!reader.Read()) { throw new JsonException(); } } if (Assessment.Count == 0) { Assessment = null; } break; case "summary": Summary = new fhirCsR4.Models.CodeableConcept(); Summary.DeserializeJson(ref reader, options); break; case "type": Type = new fhirCsR4.Models.CodeableConcept(); Type.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 "language": Language = new fhirCsR4.Models.CodeableConcept(); Language.DeserializeJson(ref reader, options); break; case "preferred": Preferred = reader.GetBoolean(); break; default: ((fhirCsR4.Models.BackboneElement) this).DeserializeJsonProperty(ref reader, options, propertyName); break; } }