/// <summary> /// Deserialize a JSON property /// </summary> public new void DeserializeJsonProperty(ref Utf8JsonReader reader, JsonSerializerOptions options, string propertyName) { switch (propertyName) { case "code": Code = reader.GetString(); break; case "_code": _Code = new Fhir.R4.Models.Element(); _Code.DeserializeJson(ref reader, options); break; case "targetIdentifier": TargetIdentifier = new Fhir.R4.Models.Identifier(); TargetIdentifier.DeserializeJson(ref reader, options); break; case "targetReference": TargetReference = new Fhir.R4.Models.Reference(); TargetReference.DeserializeJson(ref reader, options); break; default: ((Fhir.R4.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 Fhir.R4.Models.Reference(); Author.DeserializeJson(ref reader, options); break; case "code": Code = new Fhir.R4.Models.CodeableConcept(); Code.DeserializeJson(ref reader, options); break; case "created": Created = reader.GetString(); break; case "_created": _Created = new Fhir.R4.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) { Fhir.R4.Models.Identifier objIdentifier = new Fhir.R4.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 Fhir.R4.Models.Reference(); Subject.DeserializeJson(ref reader, options); break; default: ((Fhir.R4.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 "identifier": Identifier = new Fhir.R4.Models.Identifier(); Identifier.DeserializeJson(ref reader, options); break; case "name": Name = reader.GetString(); break; case "_name": _Name = new Fhir.R4.Models.Element(); _Name.DeserializeJson(ref reader, options); break; case "residueSite": ResidueSite = reader.GetString(); break; case "_residueSite": _ResidueSite = new Fhir.R4.Models.Element(); _ResidueSite.DeserializeJson(ref reader, options); break; default: ((Fhir.R4.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 "expiry": Expiry = reader.GetString(); break; case "_expiry": _Expiry = new Fhir.R4.Models.Element(); _Expiry.DeserializeJson(ref reader, options); break; case "identifier": Identifier = new Fhir.R4.Models.Identifier(); Identifier.DeserializeJson(ref reader, options); break; case "quantity": Quantity = new Fhir.R4.Models.Quantity(); Quantity.DeserializeJson(ref reader, options); break; default: ((Fhir.R4.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 "application": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Application = new List <MedicinalProductAuthorizationProcedure>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.MedicinalProductAuthorizationProcedure objApplication = new Fhir.R4.Models.MedicinalProductAuthorizationProcedure(); objApplication.DeserializeJson(ref reader, options); Application.Add(objApplication); if (!reader.Read()) { throw new JsonException(); } } if (Application.Count == 0) { Application = null; } break; case "datePeriod": DatePeriod = new Fhir.R4.Models.Period(); DatePeriod.DeserializeJson(ref reader, options); break; case "dateDateTime": DateDateTime = reader.GetString(); break; case "_dateDateTime": _DateDateTime = new Fhir.R4.Models.Element(); _DateDateTime.DeserializeJson(ref reader, options); break; case "identifier": Identifier = new Fhir.R4.Models.Identifier(); Identifier.DeserializeJson(ref reader, options); break; case "type": Type = new Fhir.R4.Models.CodeableConcept(); Type.DeserializeJson(ref reader, options); break; default: ((Fhir.R4.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 "cTerminalModification": CTerminalModification = reader.GetString(); break; case "_cTerminalModification": _CTerminalModification = new Fhir.R4.Models.Element(); _CTerminalModification.DeserializeJson(ref reader, options); break; case "cTerminalModificationId": CTerminalModificationId = new Fhir.R4.Models.Identifier(); CTerminalModificationId.DeserializeJson(ref reader, options); break; case "length": Length = reader.GetInt32(); break; case "nTerminalModification": NTerminalModification = reader.GetString(); break; case "_nTerminalModification": _NTerminalModification = new Fhir.R4.Models.Element(); _NTerminalModification.DeserializeJson(ref reader, options); break; case "nTerminalModificationId": NTerminalModificationId = new Fhir.R4.Models.Identifier(); NTerminalModificationId.DeserializeJson(ref reader, options); break; case "sequence": Sequence = reader.GetString(); break; case "_sequence": _Sequence = new Fhir.R4.Models.Element(); _Sequence.DeserializeJson(ref reader, options); break; case "sequenceAttachment": SequenceAttachment = new Fhir.R4.Models.Attachment(); SequenceAttachment.DeserializeJson(ref reader, options); break; case "subunit": Subunit = reader.GetInt32(); break; default: ((Fhir.R4.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 Fhir.R4.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) { Fhir.R4.Models.Identifier objIdentifier = new Fhir.R4.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 Fhir.R4.Models.Reference(); Issuer.DeserializeJson(ref reader, options); break; case "period": Period = new Fhir.R4.Models.Period(); Period.DeserializeJson(ref reader, options); break; default: ((Fhir.R4.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 "identifier": Identifier = new Fhir.R4.Models.Identifier(); Identifier.DeserializeJson(ref reader, options); break; case "period": Period = new Fhir.R4.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) { Fhir.R4.Models.CodeableConcept objSpecialPrecautionsForStorage = new Fhir.R4.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 Fhir.R4.Models.CodeableConcept(); Type.DeserializeJson(ref reader, options); break; default: ((Fhir.R4.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 "element": Element = new Fhir.R4.Models.Identifier(); Element.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) { Fhir.R4.Models.Reference objSource = new Fhir.R4.Models.Reference(); objSource.DeserializeJson(ref reader, options); Source.Add(objSource); if (!reader.Read()) { throw new JsonException(); } } if (Source.Count == 0) { Source = null; } break; case "type": Type = new Fhir.R4.Models.CodeableConcept(); Type.DeserializeJson(ref reader, options); break; default: ((Fhir.R4.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 "identifier": Identifier = new Fhir.R4.Models.Identifier(); Identifier.DeserializeJson(ref reader, options); break; case "ref": Ref = new Fhir.R4.Models.Reference(); Ref.DeserializeJson(ref reader, options); break; default: ((Fhir.R4.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 "immediatePackaging": ImmediatePackaging = new Fhir.R4.Models.Identifier(); ImmediatePackaging.DeserializeJson(ref reader, options); break; case "outerPackaging": OuterPackaging = new Fhir.R4.Models.Identifier(); OuterPackaging.DeserializeJson(ref reader, options); break; default: ((Fhir.R4.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 "display": Display = reader.GetString(); break; case "_display": _Display = new Fhir.R4.Models.Element(); _Display.DeserializeJson(ref reader, options); break; case "identifier": Identifier = new Fhir.R4.Models.Identifier(); Identifier.DeserializeJson(ref reader, options); break; case "reference": ReferenceField = reader.GetString(); break; case "_reference": _ReferenceField = new Fhir.R4.Models.Element(); _ReferenceField.DeserializeJson(ref reader, options); break; case "type": Type = reader.GetString(); break; case "_type": _Type = new Fhir.R4.Models.Element(); _Type.DeserializeJson(ref reader, options); break; default: ((Fhir.R4.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 "active": Active = reader.GetBoolean(); break; case "availabilityExceptions": AvailabilityExceptions = reader.GetString(); break; case "_availabilityExceptions": _AvailabilityExceptions = new Fhir.R4.Models.Element(); _AvailabilityExceptions.DeserializeJson(ref reader, options); break; case "availableTime": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } AvailableTime = new List <PractitionerRoleAvailableTime>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.PractitionerRoleAvailableTime objAvailableTime = new Fhir.R4.Models.PractitionerRoleAvailableTime(); objAvailableTime.DeserializeJson(ref reader, options); AvailableTime.Add(objAvailableTime); if (!reader.Read()) { throw new JsonException(); } } if (AvailableTime.Count == 0) { AvailableTime = null; } break; case "code": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Code = new List <CodeableConcept>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.CodeableConcept objCode = new Fhir.R4.Models.CodeableConcept(); objCode.DeserializeJson(ref reader, options); Code.Add(objCode); if (!reader.Read()) { throw new JsonException(); } } if (Code.Count == 0) { Code = null; } break; case "endpoint": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Endpoint = new List <Reference>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.Reference objEndpoint = new Fhir.R4.Models.Reference(); objEndpoint.DeserializeJson(ref reader, options); Endpoint.Add(objEndpoint); if (!reader.Read()) { throw new JsonException(); } } if (Endpoint.Count == 0) { Endpoint = null; } break; case "healthcareService": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } HealthcareService = new List <Reference>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.Reference objHealthcareService = new Fhir.R4.Models.Reference(); objHealthcareService.DeserializeJson(ref reader, options); HealthcareService.Add(objHealthcareService); if (!reader.Read()) { throw new JsonException(); } } if (HealthcareService.Count == 0) { HealthcareService = null; } break; case "identifier": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Identifier = new List <Identifier>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.Identifier objIdentifier = new Fhir.R4.Models.Identifier(); objIdentifier.DeserializeJson(ref reader, options); Identifier.Add(objIdentifier); if (!reader.Read()) { throw new JsonException(); } } if (Identifier.Count == 0) { Identifier = null; } break; case "location": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Location = new List <Reference>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.Reference objLocation = new Fhir.R4.Models.Reference(); objLocation.DeserializeJson(ref reader, options); Location.Add(objLocation); if (!reader.Read()) { throw new JsonException(); } } if (Location.Count == 0) { Location = null; } break; case "notAvailable": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } NotAvailable = new List <PractitionerRoleNotAvailable>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.PractitionerRoleNotAvailable objNotAvailable = new Fhir.R4.Models.PractitionerRoleNotAvailable(); objNotAvailable.DeserializeJson(ref reader, options); NotAvailable.Add(objNotAvailable); if (!reader.Read()) { throw new JsonException(); } } if (NotAvailable.Count == 0) { NotAvailable = null; } break; case "organization": Organization = new Fhir.R4.Models.Reference(); Organization.DeserializeJson(ref reader, options); break; case "period": Period = new Fhir.R4.Models.Period(); Period.DeserializeJson(ref reader, options); break; case "practitioner": Practitioner = new Fhir.R4.Models.Reference(); Practitioner.DeserializeJson(ref reader, options); break; case "specialty": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Specialty = new List <CodeableConcept>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.CodeableConcept objSpecialty = new Fhir.R4.Models.CodeableConcept(); objSpecialty.DeserializeJson(ref reader, options); Specialty.Add(objSpecialty); if (!reader.Read()) { throw new JsonException(); } } if (Specialty.Count == 0) { Specialty = null; } break; case "telecom": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Telecom = new List <ContactPoint>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.ContactPoint objTelecom = new Fhir.R4.Models.ContactPoint(); objTelecom.DeserializeJson(ref reader, options); Telecom.Add(objTelecom); if (!reader.Read()) { throw new JsonException(); } } if (Telecom.Count == 0) { Telecom = null; } break; default: ((Fhir.R4.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 "created": Created = reader.GetString(); break; case "_created": _Created = new Fhir.R4.Models.Element(); _Created.DeserializeJson(ref reader, options); break; case "enterer": Enterer = new Fhir.R4.Models.Reference(); Enterer.DeserializeJson(ref reader, options); break; case "facility": Facility = new Fhir.R4.Models.Reference(); Facility.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) { Fhir.R4.Models.Identifier objIdentifier = new Fhir.R4.Models.Identifier(); objIdentifier.DeserializeJson(ref reader, options); Identifier.Add(objIdentifier); if (!reader.Read()) { throw new JsonException(); } } if (Identifier.Count == 0) { Identifier = null; } break; case "insurance": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Insurance = new List <CoverageEligibilityRequestInsurance>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.CoverageEligibilityRequestInsurance objInsurance = new Fhir.R4.Models.CoverageEligibilityRequestInsurance(); objInsurance.DeserializeJson(ref reader, options); Insurance.Add(objInsurance); if (!reader.Read()) { throw new JsonException(); } } if (Insurance.Count == 0) { Insurance = null; } break; case "insurer": Insurer = new Fhir.R4.Models.Reference(); Insurer.DeserializeJson(ref reader, options); break; case "item": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Item = new List <CoverageEligibilityRequestItem>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.CoverageEligibilityRequestItem objItem = new Fhir.R4.Models.CoverageEligibilityRequestItem(); objItem.DeserializeJson(ref reader, options); Item.Add(objItem); if (!reader.Read()) { throw new JsonException(); } } if (Item.Count == 0) { Item = null; } break; case "patient": Patient = new Fhir.R4.Models.Reference(); Patient.DeserializeJson(ref reader, options); break; case "priority": Priority = new Fhir.R4.Models.CodeableConcept(); Priority.DeserializeJson(ref reader, options); break; case "provider": Provider = new Fhir.R4.Models.Reference(); Provider.DeserializeJson(ref reader, options); break; case "purpose": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Purpose = new List <string>(); while (reader.TokenType != JsonTokenType.EndArray) { Purpose.Add(reader.GetString()); if (!reader.Read()) { throw new JsonException(); } } if (Purpose.Count == 0) { Purpose = null; } break; case "_purpose": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } _Purpose = new List <Element>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.Element obj_Purpose = new Fhir.R4.Models.Element(); obj_Purpose.DeserializeJson(ref reader, options); _Purpose.Add(obj_Purpose); if (!reader.Read()) { throw new JsonException(); } } if (_Purpose.Count == 0) { _Purpose = null; } break; case "servicedDate": ServicedDate = reader.GetString(); break; case "_servicedDate": _ServicedDate = new Fhir.R4.Models.Element(); _ServicedDate.DeserializeJson(ref reader, options); break; case "servicedPeriod": ServicedPeriod = new Fhir.R4.Models.Period(); ServicedPeriod.DeserializeJson(ref reader, options); break; case "status": Status = reader.GetString(); break; case "_status": _Status = new Fhir.R4.Models.Element(); _Status.DeserializeJson(ref reader, options); break; case "supportingInfo": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } SupportingInfo = new List <CoverageEligibilityRequestSupportingInfo>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.CoverageEligibilityRequestSupportingInfo objSupportingInfo = new Fhir.R4.Models.CoverageEligibilityRequestSupportingInfo(); objSupportingInfo.DeserializeJson(ref reader, options); SupportingInfo.Add(objSupportingInfo); if (!reader.Read()) { throw new JsonException(); } } if (SupportingInfo.Count == 0) { SupportingInfo = null; } break; default: ((Fhir.R4.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 "country": Country = new Fhir.R4.Models.CodeableConcept(); Country.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) { Fhir.R4.Models.Identifier objIdentifier = new Fhir.R4.Models.Identifier(); objIdentifier.DeserializeJson(ref reader, options); Identifier.Add(objIdentifier); if (!reader.Read()) { throw new JsonException(); } } if (Identifier.Count == 0) { Identifier = null; } break; case "jurisdiction": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Jurisdiction = new List <CodeableConcept>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.CodeableConcept objJurisdiction = new Fhir.R4.Models.CodeableConcept(); objJurisdiction.DeserializeJson(ref reader, options); Jurisdiction.Add(objJurisdiction); if (!reader.Read()) { throw new JsonException(); } } if (Jurisdiction.Count == 0) { Jurisdiction = null; } break; case "legalStatusOfSupply": LegalStatusOfSupply = new Fhir.R4.Models.CodeableConcept(); LegalStatusOfSupply.DeserializeJson(ref reader, options); break; case "validityPeriod": ValidityPeriod = new Fhir.R4.Models.Period(); ValidityPeriod.DeserializeJson(ref reader, options); break; default: ((Fhir.R4.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 "created": Created = reader.GetString(); break; case "_created": _Created = new Fhir.R4.Models.Element(); _Created.DeserializeJson(ref reader, options); break; case "disposition": Disposition = reader.GetString(); break; case "_disposition": _Disposition = new Fhir.R4.Models.Element(); _Disposition.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) { Fhir.R4.Models.Identifier objIdentifier = new Fhir.R4.Models.Identifier(); objIdentifier.DeserializeJson(ref reader, options); Identifier.Add(objIdentifier); if (!reader.Read()) { throw new JsonException(); } } if (Identifier.Count == 0) { Identifier = null; } break; case "organization": Organization = new Fhir.R4.Models.Reference(); Organization.DeserializeJson(ref reader, options); break; case "outcome": Outcome = reader.GetString(); break; case "_outcome": _Outcome = new Fhir.R4.Models.Element(); _Outcome.DeserializeJson(ref reader, options); break; case "request": Request = new Fhir.R4.Models.Reference(); Request.DeserializeJson(ref reader, options); break; case "requestProvider": RequestProvider = new Fhir.R4.Models.Reference(); RequestProvider.DeserializeJson(ref reader, options); break; case "status": Status = reader.GetString(); break; case "_status": _Status = new Fhir.R4.Models.Element(); _Status.DeserializeJson(ref reader, options); break; default: ((Fhir.R4.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 "coverage": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Coverage = new List <AccountCoverage>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.AccountCoverage objCoverage = new Fhir.R4.Models.AccountCoverage(); objCoverage.DeserializeJson(ref reader, options); Coverage.Add(objCoverage); if (!reader.Read()) { throw new JsonException(); } } if (Coverage.Count == 0) { Coverage = null; } break; case "description": Description = reader.GetString(); break; case "_description": _Description = new Fhir.R4.Models.Element(); _Description.DeserializeJson(ref reader, options); break; case "guarantor": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Guarantor = new List <AccountGuarantor>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.AccountGuarantor objGuarantor = new Fhir.R4.Models.AccountGuarantor(); objGuarantor.DeserializeJson(ref reader, options); Guarantor.Add(objGuarantor); if (!reader.Read()) { throw new JsonException(); } } if (Guarantor.Count == 0) { Guarantor = null; } break; case "identifier": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Identifier = new List <Identifier>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.Identifier objIdentifier = new Fhir.R4.Models.Identifier(); objIdentifier.DeserializeJson(ref reader, options); Identifier.Add(objIdentifier); if (!reader.Read()) { throw new JsonException(); } } if (Identifier.Count == 0) { Identifier = null; } break; case "name": Name = reader.GetString(); break; case "_name": _Name = new Fhir.R4.Models.Element(); _Name.DeserializeJson(ref reader, options); break; case "owner": Owner = new Fhir.R4.Models.Reference(); Owner.DeserializeJson(ref reader, options); break; case "partOf": PartOf = new Fhir.R4.Models.Reference(); PartOf.DeserializeJson(ref reader, options); break; case "servicePeriod": ServicePeriod = new Fhir.R4.Models.Period(); ServicePeriod.DeserializeJson(ref reader, options); break; case "status": Status = reader.GetString(); break; case "_status": _Status = new Fhir.R4.Models.Element(); _Status.DeserializeJson(ref reader, options); break; case "subject": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Subject = new List <Reference>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.Reference objSubject = new Fhir.R4.Models.Reference(); objSubject.DeserializeJson(ref reader, options); Subject.Add(objSubject); if (!reader.Read()) { throw new JsonException(); } } if (Subject.Count == 0) { Subject = null; } break; case "type": Type = new Fhir.R4.Models.CodeableConcept(); Type.DeserializeJson(ref reader, options); break; default: ((Fhir.R4.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 "code": Code = new Fhir.R4.Models.CodeableConcept(); Code.DeserializeJson(ref reader, options); break; case "date": Date = reader.GetString(); break; case "_date": _Date = new Fhir.R4.Models.Element(); _Date.DeserializeJson(ref reader, options); break; case "emptyReason": EmptyReason = new Fhir.R4.Models.CodeableConcept(); EmptyReason.DeserializeJson(ref reader, options); break; case "encounter": Encounter = new Fhir.R4.Models.Reference(); Encounter.DeserializeJson(ref reader, options); break; case "entry": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Entry = new List <ListEntry>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.ListEntry objEntry = new Fhir.R4.Models.ListEntry(); objEntry.DeserializeJson(ref reader, options); Entry.Add(objEntry); if (!reader.Read()) { throw new JsonException(); } } if (Entry.Count == 0) { Entry = null; } break; case "identifier": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Identifier = new List <Identifier>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.Identifier objIdentifier = new Fhir.R4.Models.Identifier(); objIdentifier.DeserializeJson(ref reader, options); Identifier.Add(objIdentifier); if (!reader.Read()) { throw new JsonException(); } } if (Identifier.Count == 0) { Identifier = null; } break; case "mode": Mode = reader.GetString(); break; case "_mode": _Mode = new Fhir.R4.Models.Element(); _Mode.DeserializeJson(ref reader, options); break; case "note": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Note = new List <Annotation>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.Annotation objNote = new Fhir.R4.Models.Annotation(); objNote.DeserializeJson(ref reader, options); Note.Add(objNote); if (!reader.Read()) { throw new JsonException(); } } if (Note.Count == 0) { Note = null; } break; case "orderedBy": OrderedBy = new Fhir.R4.Models.CodeableConcept(); OrderedBy.DeserializeJson(ref reader, options); break; case "source": Source = new Fhir.R4.Models.Reference(); Source.DeserializeJson(ref reader, options); break; case "status": Status = reader.GetString(); break; case "_status": _Status = new Fhir.R4.Models.Element(); _Status.DeserializeJson(ref reader, options); break; case "subject": Subject = new Fhir.R4.Models.Reference(); Subject.DeserializeJson(ref reader, options); break; case "title": Title = reader.GetString(); break; case "_title": _Title = new Fhir.R4.Models.Element(); _Title.DeserializeJson(ref reader, options); break; default: ((Fhir.R4.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 "appointmentType": AppointmentType = new Fhir.R4.Models.CodeableConcept(); AppointmentType.DeserializeJson(ref reader, options); break; case "comment": Comment = reader.GetString(); break; case "_comment": _Comment = new Fhir.R4.Models.Element(); _Comment.DeserializeJson(ref reader, options); break; case "end": End = reader.GetString(); break; case "_end": _End = new Fhir.R4.Models.Element(); _End.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) { Fhir.R4.Models.Identifier objIdentifier = new Fhir.R4.Models.Identifier(); objIdentifier.DeserializeJson(ref reader, options); Identifier.Add(objIdentifier); if (!reader.Read()) { throw new JsonException(); } } if (Identifier.Count == 0) { Identifier = null; } break; case "overbooked": Overbooked = reader.GetBoolean(); break; case "schedule": Schedule = new Fhir.R4.Models.Reference(); Schedule.DeserializeJson(ref reader, options); break; case "serviceCategory": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } ServiceCategory = new List <CodeableConcept>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.CodeableConcept objServiceCategory = new Fhir.R4.Models.CodeableConcept(); objServiceCategory.DeserializeJson(ref reader, options); ServiceCategory.Add(objServiceCategory); if (!reader.Read()) { throw new JsonException(); } } if (ServiceCategory.Count == 0) { ServiceCategory = null; } break; case "serviceType": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } ServiceType = new List <CodeableConcept>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.CodeableConcept objServiceType = new Fhir.R4.Models.CodeableConcept(); objServiceType.DeserializeJson(ref reader, options); ServiceType.Add(objServiceType); if (!reader.Read()) { throw new JsonException(); } } if (ServiceType.Count == 0) { ServiceType = null; } break; case "specialty": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Specialty = new List <CodeableConcept>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.CodeableConcept objSpecialty = new Fhir.R4.Models.CodeableConcept(); objSpecialty.DeserializeJson(ref reader, options); Specialty.Add(objSpecialty); if (!reader.Read()) { throw new JsonException(); } } if (Specialty.Count == 0) { Specialty = null; } break; case "start": Start = reader.GetString(); break; case "_start": _Start = new Fhir.R4.Models.Element(); _Start.DeserializeJson(ref reader, options); break; case "status": Status = reader.GetString(); break; case "_status": _Status = new Fhir.R4.Models.Element(); _Status.DeserializeJson(ref reader, options); break; default: ((Fhir.R4.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 "abatementDateTime": AbatementDateTime = reader.GetString(); break; case "_abatementDateTime": _AbatementDateTime = new Fhir.R4.Models.Element(); _AbatementDateTime.DeserializeJson(ref reader, options); break; case "abatementAge": AbatementAge = new Fhir.R4.Models.Age(); AbatementAge.DeserializeJson(ref reader, options); break; case "abatementPeriod": AbatementPeriod = new Fhir.R4.Models.Period(); AbatementPeriod.DeserializeJson(ref reader, options); break; case "abatementRange": AbatementRange = new Fhir.R4.Models.Range(); AbatementRange.DeserializeJson(ref reader, options); break; case "abatementString": AbatementString = reader.GetString(); break; case "_abatementString": _AbatementString = new Fhir.R4.Models.Element(); _AbatementString.DeserializeJson(ref reader, options); break; case "asserter": Asserter = new Fhir.R4.Models.Reference(); Asserter.DeserializeJson(ref reader, options); break; case "bodySite": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } BodySite = new List <CodeableConcept>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.CodeableConcept objBodySite = new Fhir.R4.Models.CodeableConcept(); objBodySite.DeserializeJson(ref reader, options); BodySite.Add(objBodySite); if (!reader.Read()) { throw new JsonException(); } } if (BodySite.Count == 0) { BodySite = null; } break; case "category": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Category = new List <CodeableConcept>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.CodeableConcept objCategory = new Fhir.R4.Models.CodeableConcept(); objCategory.DeserializeJson(ref reader, options); Category.Add(objCategory); if (!reader.Read()) { throw new JsonException(); } } if (Category.Count == 0) { Category = null; } break; case "clinicalStatus": ClinicalStatus = new Fhir.R4.Models.CodeableConcept(); ClinicalStatus.DeserializeJson(ref reader, options); break; case "code": Code = new Fhir.R4.Models.CodeableConcept(); Code.DeserializeJson(ref reader, options); break; case "encounter": Encounter = new Fhir.R4.Models.Reference(); Encounter.DeserializeJson(ref reader, options); break; case "evidence": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Evidence = new List <ConditionEvidence>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.ConditionEvidence objEvidence = new Fhir.R4.Models.ConditionEvidence(); objEvidence.DeserializeJson(ref reader, options); Evidence.Add(objEvidence); if (!reader.Read()) { throw new JsonException(); } } if (Evidence.Count == 0) { Evidence = null; } break; case "identifier": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Identifier = new List <Identifier>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.Identifier objIdentifier = new Fhir.R4.Models.Identifier(); objIdentifier.DeserializeJson(ref reader, options); Identifier.Add(objIdentifier); if (!reader.Read()) { throw new JsonException(); } } if (Identifier.Count == 0) { Identifier = null; } break; case "note": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Note = new List <Annotation>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.Annotation objNote = new Fhir.R4.Models.Annotation(); objNote.DeserializeJson(ref reader, options); Note.Add(objNote); if (!reader.Read()) { throw new JsonException(); } } if (Note.Count == 0) { Note = null; } break; case "onsetDateTime": OnsetDateTime = reader.GetString(); break; case "_onsetDateTime": _OnsetDateTime = new Fhir.R4.Models.Element(); _OnsetDateTime.DeserializeJson(ref reader, options); break; case "onsetAge": OnsetAge = new Fhir.R4.Models.Age(); OnsetAge.DeserializeJson(ref reader, options); break; case "onsetPeriod": OnsetPeriod = new Fhir.R4.Models.Period(); OnsetPeriod.DeserializeJson(ref reader, options); break; case "onsetRange": OnsetRange = new Fhir.R4.Models.Range(); OnsetRange.DeserializeJson(ref reader, options); break; case "onsetString": OnsetString = reader.GetString(); break; case "_onsetString": _OnsetString = new Fhir.R4.Models.Element(); _OnsetString.DeserializeJson(ref reader, options); break; case "recordedDate": RecordedDate = reader.GetString(); break; case "_recordedDate": _RecordedDate = new Fhir.R4.Models.Element(); _RecordedDate.DeserializeJson(ref reader, options); break; case "recorder": Recorder = new Fhir.R4.Models.Reference(); Recorder.DeserializeJson(ref reader, options); break; case "severity": Severity = new Fhir.R4.Models.CodeableConcept(); Severity.DeserializeJson(ref reader, options); break; case "stage": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Stage = new List <ConditionStage>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.ConditionStage objStage = new Fhir.R4.Models.ConditionStage(); objStage.DeserializeJson(ref reader, options); Stage.Add(objStage); if (!reader.Read()) { throw new JsonException(); } } if (Stage.Count == 0) { Stage = null; } break; case "subject": Subject = new Fhir.R4.Models.Reference(); Subject.DeserializeJson(ref reader, options); break; case "verificationStatus": VerificationStatus = new Fhir.R4.Models.CodeableConcept(); VerificationStatus.DeserializeJson(ref reader, options); break; default: ((Fhir.R4.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 "actor": Actor = new Fhir.R4.Models.Reference(); Actor.DeserializeJson(ref reader, options); break; case "appointment": Appointment = new Fhir.R4.Models.Reference(); Appointment.DeserializeJson(ref reader, options); break; case "comment": Comment = reader.GetString(); break; case "_comment": _Comment = new Fhir.R4.Models.Element(); _Comment.DeserializeJson(ref reader, options); break; case "end": End = reader.GetString(); break; case "_end": _End = new Fhir.R4.Models.Element(); _End.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) { Fhir.R4.Models.Identifier objIdentifier = new Fhir.R4.Models.Identifier(); objIdentifier.DeserializeJson(ref reader, options); Identifier.Add(objIdentifier); if (!reader.Read()) { throw new JsonException(); } } if (Identifier.Count == 0) { Identifier = null; } break; case "participantStatus": ParticipantStatus = reader.GetString(); break; case "_participantStatus": _ParticipantStatus = new Fhir.R4.Models.Element(); _ParticipantStatus.DeserializeJson(ref reader, options); break; case "participantType": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } ParticipantType = new List <CodeableConcept>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.CodeableConcept objParticipantType = new Fhir.R4.Models.CodeableConcept(); objParticipantType.DeserializeJson(ref reader, options); ParticipantType.Add(objParticipantType); if (!reader.Read()) { throw new JsonException(); } } if (ParticipantType.Count == 0) { ParticipantType = null; } break; case "start": Start = reader.GetString(); break; case "_start": _Start = new Fhir.R4.Models.Element(); _Start.DeserializeJson(ref reader, options); break; default: ((Fhir.R4.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 "account": Account = new Fhir.R4.Models.Reference(); Account.DeserializeJson(ref reader, options); break; case "cancelledReason": CancelledReason = reader.GetString(); break; case "_cancelledReason": _CancelledReason = new Fhir.R4.Models.Element(); _CancelledReason.DeserializeJson(ref reader, options); break; case "date": Date = reader.GetString(); break; case "_date": _Date = new Fhir.R4.Models.Element(); _Date.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) { Fhir.R4.Models.Identifier objIdentifier = new Fhir.R4.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 Fhir.R4.Models.Reference(); Issuer.DeserializeJson(ref reader, options); break; case "lineItem": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } LineItem = new List <InvoiceLineItem>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.InvoiceLineItem objLineItem = new Fhir.R4.Models.InvoiceLineItem(); objLineItem.DeserializeJson(ref reader, options); LineItem.Add(objLineItem); if (!reader.Read()) { throw new JsonException(); } } if (LineItem.Count == 0) { LineItem = null; } break; case "note": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Note = new List <Annotation>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.Annotation objNote = new Fhir.R4.Models.Annotation(); objNote.DeserializeJson(ref reader, options); Note.Add(objNote); if (!reader.Read()) { throw new JsonException(); } } if (Note.Count == 0) { Note = null; } break; case "participant": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Participant = new List <InvoiceParticipant>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.InvoiceParticipant objParticipant = new Fhir.R4.Models.InvoiceParticipant(); objParticipant.DeserializeJson(ref reader, options); Participant.Add(objParticipant); if (!reader.Read()) { throw new JsonException(); } } if (Participant.Count == 0) { Participant = null; } break; case "paymentTerms": PaymentTerms = reader.GetString(); break; case "_paymentTerms": _PaymentTerms = new Fhir.R4.Models.Element(); _PaymentTerms.DeserializeJson(ref reader, options); break; case "recipient": Recipient = new Fhir.R4.Models.Reference(); Recipient.DeserializeJson(ref reader, options); break; case "status": Status = reader.GetString(); break; case "_status": _Status = new Fhir.R4.Models.Element(); _Status.DeserializeJson(ref reader, options); break; case "subject": Subject = new Fhir.R4.Models.Reference(); Subject.DeserializeJson(ref reader, options); break; case "totalGross": TotalGross = new Fhir.R4.Models.Money(); TotalGross.DeserializeJson(ref reader, options); break; case "totalNet": TotalNet = new Fhir.R4.Models.Money(); TotalNet.DeserializeJson(ref reader, options); break; case "totalPriceComponent": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } TotalPriceComponent = new List <InvoiceLineItemPriceComponent>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.InvoiceLineItemPriceComponent objTotalPriceComponent = new Fhir.R4.Models.InvoiceLineItemPriceComponent(); objTotalPriceComponent.DeserializeJson(ref reader, options); TotalPriceComponent.Add(objTotalPriceComponent); if (!reader.Read()) { throw new JsonException(); } } if (TotalPriceComponent.Count == 0) { TotalPriceComponent = null; } break; case "type": Type = new Fhir.R4.Models.CodeableConcept(); Type.DeserializeJson(ref reader, options); break; default: ((Fhir.R4.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 "category": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Category = new List <CodeableConcept>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.CodeableConcept objCategory = new Fhir.R4.Models.CodeableConcept(); objCategory.DeserializeJson(ref reader, options); Category.Add(objCategory); if (!reader.Read()) { throw new JsonException(); } } if (Category.Count == 0) { Category = null; } break; case "dateTime": DateTime = reader.GetString(); break; case "_dateTime": _DateTime = new Fhir.R4.Models.Element(); _DateTime.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) { Fhir.R4.Models.Identifier objIdentifier = new Fhir.R4.Models.Identifier(); objIdentifier.DeserializeJson(ref reader, options); Identifier.Add(objIdentifier); if (!reader.Read()) { throw new JsonException(); } } if (Identifier.Count == 0) { Identifier = null; } break; case "organization": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Organization = new List <Reference>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.Reference objOrganization = new Fhir.R4.Models.Reference(); objOrganization.DeserializeJson(ref reader, options); Organization.Add(objOrganization); if (!reader.Read()) { throw new JsonException(); } } if (Organization.Count == 0) { Organization = null; } break; case "patient": Patient = new Fhir.R4.Models.Reference(); Patient.DeserializeJson(ref reader, options); break; case "performer": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Performer = new List <Reference>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.Reference objPerformer = new Fhir.R4.Models.Reference(); objPerformer.DeserializeJson(ref reader, options); Performer.Add(objPerformer); if (!reader.Read()) { throw new JsonException(); } } if (Performer.Count == 0) { Performer = null; } break; case "policy": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Policy = new List <ConsentPolicy>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.ConsentPolicy objPolicy = new Fhir.R4.Models.ConsentPolicy(); objPolicy.DeserializeJson(ref reader, options); Policy.Add(objPolicy); if (!reader.Read()) { throw new JsonException(); } } if (Policy.Count == 0) { Policy = null; } break; case "policyRule": PolicyRule = new Fhir.R4.Models.CodeableConcept(); PolicyRule.DeserializeJson(ref reader, options); break; case "provision": Provision = new Fhir.R4.Models.ConsentProvision(); Provision.DeserializeJson(ref reader, options); break; case "scope": Scope = new Fhir.R4.Models.CodeableConcept(); Scope.DeserializeJson(ref reader, options); break; case "sourceAttachment": SourceAttachment = new Fhir.R4.Models.Attachment(); SourceAttachment.DeserializeJson(ref reader, options); break; case "sourceReference": SourceReference = new Fhir.R4.Models.Reference(); SourceReference.DeserializeJson(ref reader, options); break; case "status": Status = reader.GetString(); break; case "_status": _Status = new Fhir.R4.Models.Element(); _Status.DeserializeJson(ref reader, options); break; case "verification": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Verification = new List <ConsentVerification>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.ConsentVerification objVerification = new Fhir.R4.Models.ConsentVerification(); objVerification.DeserializeJson(ref reader, options); Verification.Add(objVerification); if (!reader.Read()) { throw new JsonException(); } } if (Verification.Count == 0) { Verification = null; } break; default: ((Fhir.R4.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 "basedOn": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } BasedOn = new List <Reference>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.Reference objBasedOn = new Fhir.R4.Models.Reference(); objBasedOn.DeserializeJson(ref reader, options); BasedOn.Add(objBasedOn); if (!reader.Read()) { throw new JsonException(); } } if (BasedOn.Count == 0) { BasedOn = null; } break; case "bodySite": BodySite = new Fhir.R4.Models.CodeableConcept(); BodySite.DeserializeJson(ref reader, options); break; case "content": Content = new Fhir.R4.Models.Attachment(); Content.DeserializeJson(ref reader, options); break; case "createdDateTime": CreatedDateTime = reader.GetString(); break; case "_createdDateTime": _CreatedDateTime = new Fhir.R4.Models.Element(); _CreatedDateTime.DeserializeJson(ref reader, options); break; case "createdPeriod": CreatedPeriod = new Fhir.R4.Models.Period(); CreatedPeriod.DeserializeJson(ref reader, options); break; case "device": Device = new Fhir.R4.Models.Reference(); Device.DeserializeJson(ref reader, options); break; case "deviceName": DeviceName = reader.GetString(); break; case "_deviceName": _DeviceName = new Fhir.R4.Models.Element(); _DeviceName.DeserializeJson(ref reader, options); break; case "duration": Duration = reader.GetDecimal(); break; case "_duration": _Duration = new Fhir.R4.Models.Element(); _Duration.DeserializeJson(ref reader, options); break; case "encounter": Encounter = new Fhir.R4.Models.Reference(); Encounter.DeserializeJson(ref reader, options); break; case "frames": Frames = reader.GetUInt32(); break; case "height": Height = reader.GetUInt32(); break; case "identifier": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Identifier = new List <Identifier>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.Identifier objIdentifier = new Fhir.R4.Models.Identifier(); objIdentifier.DeserializeJson(ref reader, options); Identifier.Add(objIdentifier); if (!reader.Read()) { throw new JsonException(); } } if (Identifier.Count == 0) { Identifier = null; } break; case "issued": Issued = reader.GetString(); break; case "_issued": _Issued = new Fhir.R4.Models.Element(); _Issued.DeserializeJson(ref reader, options); break; case "modality": Modality = new Fhir.R4.Models.CodeableConcept(); Modality.DeserializeJson(ref reader, options); break; case "note": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Note = new List <Annotation>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.Annotation objNote = new Fhir.R4.Models.Annotation(); objNote.DeserializeJson(ref reader, options); Note.Add(objNote); if (!reader.Read()) { throw new JsonException(); } } if (Note.Count == 0) { Note = null; } break; case "operator": Operator = new Fhir.R4.Models.Reference(); Operator.DeserializeJson(ref reader, options); break; case "partOf": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } PartOf = new List <Reference>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.Reference objPartOf = new Fhir.R4.Models.Reference(); objPartOf.DeserializeJson(ref reader, options); PartOf.Add(objPartOf); if (!reader.Read()) { throw new JsonException(); } } if (PartOf.Count == 0) { PartOf = null; } break; case "reasonCode": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } ReasonCode = new List <CodeableConcept>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.CodeableConcept objReasonCode = new Fhir.R4.Models.CodeableConcept(); objReasonCode.DeserializeJson(ref reader, options); ReasonCode.Add(objReasonCode); if (!reader.Read()) { throw new JsonException(); } } if (ReasonCode.Count == 0) { ReasonCode = null; } break; case "status": Status = reader.GetString(); break; case "_status": _Status = new Fhir.R4.Models.Element(); _Status.DeserializeJson(ref reader, options); break; case "subject": Subject = new Fhir.R4.Models.Reference(); Subject.DeserializeJson(ref reader, options); break; case "type": Type = new Fhir.R4.Models.CodeableConcept(); Type.DeserializeJson(ref reader, options); break; case "view": View = new Fhir.R4.Models.CodeableConcept(); View.DeserializeJson(ref reader, options); break; case "width": Width = reader.GetUInt32(); break; default: ((Fhir.R4.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 "beneficiary": Beneficiary = new Fhir.R4.Models.Reference(); Beneficiary.DeserializeJson(ref reader, options); break; case "class": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Class = new List <CoverageClass>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.CoverageClass objClass = new Fhir.R4.Models.CoverageClass(); objClass.DeserializeJson(ref reader, options); Class.Add(objClass); if (!reader.Read()) { throw new JsonException(); } } if (Class.Count == 0) { Class = null; } break; case "contract": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Contract = new List <Reference>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.Reference objContract = new Fhir.R4.Models.Reference(); objContract.DeserializeJson(ref reader, options); Contract.Add(objContract); if (!reader.Read()) { throw new JsonException(); } } if (Contract.Count == 0) { Contract = null; } break; case "costToBeneficiary": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } CostToBeneficiary = new List <CoverageCostToBeneficiary>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.CoverageCostToBeneficiary objCostToBeneficiary = new Fhir.R4.Models.CoverageCostToBeneficiary(); objCostToBeneficiary.DeserializeJson(ref reader, options); CostToBeneficiary.Add(objCostToBeneficiary); if (!reader.Read()) { throw new JsonException(); } } if (CostToBeneficiary.Count == 0) { CostToBeneficiary = null; } break; case "dependent": Dependent = reader.GetString(); break; case "_dependent": _Dependent = new Fhir.R4.Models.Element(); _Dependent.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) { Fhir.R4.Models.Identifier objIdentifier = new Fhir.R4.Models.Identifier(); objIdentifier.DeserializeJson(ref reader, options); Identifier.Add(objIdentifier); if (!reader.Read()) { throw new JsonException(); } } if (Identifier.Count == 0) { Identifier = null; } break; case "network": Network = reader.GetString(); break; case "_network": _Network = new Fhir.R4.Models.Element(); _Network.DeserializeJson(ref reader, options); break; case "order": Order = reader.GetUInt32(); break; case "payor": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Payor = new List <Reference>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.Reference objPayor = new Fhir.R4.Models.Reference(); objPayor.DeserializeJson(ref reader, options); Payor.Add(objPayor); if (!reader.Read()) { throw new JsonException(); } } if (Payor.Count == 0) { Payor = null; } break; case "period": Period = new Fhir.R4.Models.Period(); Period.DeserializeJson(ref reader, options); break; case "policyHolder": PolicyHolder = new Fhir.R4.Models.Reference(); PolicyHolder.DeserializeJson(ref reader, options); break; case "relationship": Relationship = new Fhir.R4.Models.CodeableConcept(); Relationship.DeserializeJson(ref reader, options); break; case "status": Status = reader.GetString(); break; case "_status": _Status = new Fhir.R4.Models.Element(); _Status.DeserializeJson(ref reader, options); break; case "subrogation": Subrogation = reader.GetBoolean(); break; case "subscriber": Subscriber = new Fhir.R4.Models.Reference(); Subscriber.DeserializeJson(ref reader, options); break; case "subscriberId": SubscriberId = reader.GetString(); break; case "_subscriberId": _SubscriberId = new Fhir.R4.Models.Element(); _SubscriberId.DeserializeJson(ref reader, options); break; case "type": Type = new Fhir.R4.Models.CodeableConcept(); Type.DeserializeJson(ref reader, options); break; default: ((Fhir.R4.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 "country": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Country = new List <CodeableConcept>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.CodeableConcept objCountry = new Fhir.R4.Models.CodeableConcept(); objCountry.DeserializeJson(ref reader, options); Country.Add(objCountry); if (!reader.Read()) { throw new JsonException(); } } if (Country.Count == 0) { Country = null; } break; case "dataExclusivityPeriod": DataExclusivityPeriod = new Fhir.R4.Models.Period(); DataExclusivityPeriod.DeserializeJson(ref reader, options); break; case "dateOfFirstAuthorization": DateOfFirstAuthorization = reader.GetString(); break; case "_dateOfFirstAuthorization": _DateOfFirstAuthorization = new Fhir.R4.Models.Element(); _DateOfFirstAuthorization.DeserializeJson(ref reader, options); break; case "holder": Holder = new Fhir.R4.Models.Reference(); Holder.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) { Fhir.R4.Models.Identifier objIdentifier = new Fhir.R4.Models.Identifier(); objIdentifier.DeserializeJson(ref reader, options); Identifier.Add(objIdentifier); if (!reader.Read()) { throw new JsonException(); } } if (Identifier.Count == 0) { Identifier = null; } break; case "internationalBirthDate": InternationalBirthDate = reader.GetString(); break; case "_internationalBirthDate": _InternationalBirthDate = new Fhir.R4.Models.Element(); _InternationalBirthDate.DeserializeJson(ref reader, options); break; case "jurisdiction": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Jurisdiction = new List <CodeableConcept>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.CodeableConcept objJurisdiction = new Fhir.R4.Models.CodeableConcept(); objJurisdiction.DeserializeJson(ref reader, options); Jurisdiction.Add(objJurisdiction); if (!reader.Read()) { throw new JsonException(); } } if (Jurisdiction.Count == 0) { Jurisdiction = null; } break; case "jurisdictionalAuthorization": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } JurisdictionalAuthorization = new List <MedicinalProductAuthorizationJurisdictionalAuthorization>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.MedicinalProductAuthorizationJurisdictionalAuthorization objJurisdictionalAuthorization = new Fhir.R4.Models.MedicinalProductAuthorizationJurisdictionalAuthorization(); objJurisdictionalAuthorization.DeserializeJson(ref reader, options); JurisdictionalAuthorization.Add(objJurisdictionalAuthorization); if (!reader.Read()) { throw new JsonException(); } } if (JurisdictionalAuthorization.Count == 0) { JurisdictionalAuthorization = null; } break; case "legalBasis": LegalBasis = new Fhir.R4.Models.CodeableConcept(); LegalBasis.DeserializeJson(ref reader, options); break; case "procedure": Procedure = new Fhir.R4.Models.MedicinalProductAuthorizationProcedure(); Procedure.DeserializeJson(ref reader, options); break; case "regulator": Regulator = new Fhir.R4.Models.Reference(); Regulator.DeserializeJson(ref reader, options); break; case "restoreDate": RestoreDate = reader.GetString(); break; case "_restoreDate": _RestoreDate = new Fhir.R4.Models.Element(); _RestoreDate.DeserializeJson(ref reader, options); break; case "status": Status = new Fhir.R4.Models.CodeableConcept(); Status.DeserializeJson(ref reader, options); break; case "statusDate": StatusDate = reader.GetString(); break; case "_statusDate": _StatusDate = new Fhir.R4.Models.Element(); _StatusDate.DeserializeJson(ref reader, options); break; case "subject": Subject = new Fhir.R4.Models.Reference(); Subject.DeserializeJson(ref reader, options); break; case "validityPeriod": ValidityPeriod = new Fhir.R4.Models.Period(); ValidityPeriod.DeserializeJson(ref reader, options); break; default: ((Fhir.R4.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 "authority": Authority = new Fhir.R4.Models.Reference(); Authority.DeserializeJson(ref reader, options); break; case "date": Date = reader.GetString(); break; case "_date": _Date = new Fhir.R4.Models.Element(); _Date.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) { Fhir.R4.Models.Identifier objIdentifier = new Fhir.R4.Models.Identifier(); objIdentifier.DeserializeJson(ref reader, options); Identifier.Add(objIdentifier); if (!reader.Read()) { throw new JsonException(); } } if (Identifier.Count == 0) { Identifier = null; } break; case "patient": Patient = new Fhir.R4.Models.Reference(); Patient.DeserializeJson(ref reader, options); break; case "recommendation": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Recommendation = new List <ImmunizationRecommendationRecommendation>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.ImmunizationRecommendationRecommendation objRecommendation = new Fhir.R4.Models.ImmunizationRecommendationRecommendation(); objRecommendation.DeserializeJson(ref reader, options); Recommendation.Add(objRecommendation); if (!reader.Read()) { throw new JsonException(); } } if (Recommendation.Count == 0) { Recommendation = null; } break; default: ((Fhir.R4.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 "author": Author = new Fhir.R4.Models.Reference(); Author.DeserializeJson(ref reader, options); break; case "code": Code = new Fhir.R4.Models.CodeableConcept(); Code.DeserializeJson(ref reader, options); break; case "detail": Detail = reader.GetString(); break; case "_detail": _Detail = new Fhir.R4.Models.Element(); _Detail.DeserializeJson(ref reader, options); break; case "evidence": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Evidence = new List <DetectedIssueEvidence>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.DetectedIssueEvidence objEvidence = new Fhir.R4.Models.DetectedIssueEvidence(); objEvidence.DeserializeJson(ref reader, options); Evidence.Add(objEvidence); if (!reader.Read()) { throw new JsonException(); } } if (Evidence.Count == 0) { Evidence = null; } break; case "identifiedDateTime": IdentifiedDateTime = reader.GetString(); break; case "_identifiedDateTime": _IdentifiedDateTime = new Fhir.R4.Models.Element(); _IdentifiedDateTime.DeserializeJson(ref reader, options); break; case "identifiedPeriod": IdentifiedPeriod = new Fhir.R4.Models.Period(); IdentifiedPeriod.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) { Fhir.R4.Models.Identifier objIdentifier = new Fhir.R4.Models.Identifier(); objIdentifier.DeserializeJson(ref reader, options); Identifier.Add(objIdentifier); if (!reader.Read()) { throw new JsonException(); } } if (Identifier.Count == 0) { Identifier = null; } break; case "implicated": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Implicated = new List <Reference>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.Reference objImplicated = new Fhir.R4.Models.Reference(); objImplicated.DeserializeJson(ref reader, options); Implicated.Add(objImplicated); if (!reader.Read()) { throw new JsonException(); } } if (Implicated.Count == 0) { Implicated = null; } break; case "mitigation": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Mitigation = new List <DetectedIssueMitigation>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.DetectedIssueMitigation objMitigation = new Fhir.R4.Models.DetectedIssueMitigation(); objMitigation.DeserializeJson(ref reader, options); Mitigation.Add(objMitigation); if (!reader.Read()) { throw new JsonException(); } } if (Mitigation.Count == 0) { Mitigation = null; } break; case "patient": Patient = new Fhir.R4.Models.Reference(); Patient.DeserializeJson(ref reader, options); break; case "reference": Reference = reader.GetString(); break; case "_reference": _Reference = new Fhir.R4.Models.Element(); _Reference.DeserializeJson(ref reader, options); break; case "severity": Severity = reader.GetString(); break; case "_severity": _Severity = new Fhir.R4.Models.Element(); _Severity.DeserializeJson(ref reader, options); break; case "status": Status = reader.GetString(); break; case "_status": _Status = new Fhir.R4.Models.Element(); _Status.DeserializeJson(ref reader, options); break; default: ((Fhir.R4.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 "allergenicIndicator": AllergenicIndicator = reader.GetBoolean(); break; case "identifier": Identifier = new Fhir.R4.Models.Identifier(); Identifier.DeserializeJson(ref reader, options); break; case "manufacturer": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Manufacturer = new List <Reference>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.Reference objManufacturer = new Fhir.R4.Models.Reference(); objManufacturer.DeserializeJson(ref reader, options); Manufacturer.Add(objManufacturer); if (!reader.Read()) { throw new JsonException(); } } if (Manufacturer.Count == 0) { Manufacturer = null; } break; case "role": Role = new Fhir.R4.Models.CodeableConcept(); Role.DeserializeJson(ref reader, options); break; case "specifiedSubstance": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } SpecifiedSubstance = new List <MedicinalProductIngredientSpecifiedSubstance>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.MedicinalProductIngredientSpecifiedSubstance objSpecifiedSubstance = new Fhir.R4.Models.MedicinalProductIngredientSpecifiedSubstance(); objSpecifiedSubstance.DeserializeJson(ref reader, options); SpecifiedSubstance.Add(objSpecifiedSubstance); if (!reader.Read()) { throw new JsonException(); } } if (SpecifiedSubstance.Count == 0) { SpecifiedSubstance = null; } break; case "substance": Substance = new Fhir.R4.Models.MedicinalProductIngredientSubstance(); Substance.DeserializeJson(ref reader, options); break; default: ((Fhir.R4.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 "additionalCharacteristic": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } AdditionalCharacteristic = new List <CodeableConcept>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.CodeableConcept objAdditionalCharacteristic = new Fhir.R4.Models.CodeableConcept(); objAdditionalCharacteristic.DeserializeJson(ref reader, options); AdditionalCharacteristic.Add(objAdditionalCharacteristic); if (!reader.Read()) { throw new JsonException(); } } if (AdditionalCharacteristic.Count == 0) { AdditionalCharacteristic = null; } break; case "additionalClassification": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } AdditionalClassification = new List <CodeableConcept>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.CodeableConcept objAdditionalClassification = new Fhir.R4.Models.CodeableConcept(); objAdditionalClassification.DeserializeJson(ref reader, options); AdditionalClassification.Add(objAdditionalClassification); if (!reader.Read()) { throw new JsonException(); } } if (AdditionalClassification.Count == 0) { AdditionalClassification = null; } break; case "additionalIdentifier": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } AdditionalIdentifier = new List <Identifier>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.Identifier objAdditionalIdentifier = new Fhir.R4.Models.Identifier(); objAdditionalIdentifier.DeserializeJson(ref reader, options); AdditionalIdentifier.Add(objAdditionalIdentifier); if (!reader.Read()) { throw new JsonException(); } } if (AdditionalIdentifier.Count == 0) { AdditionalIdentifier = null; } break; case "classification": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Classification = new List <CodeableConcept>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.CodeableConcept objClassification = new Fhir.R4.Models.CodeableConcept(); objClassification.DeserializeJson(ref reader, options); Classification.Add(objClassification); if (!reader.Read()) { throw new JsonException(); } } if (Classification.Count == 0) { Classification = null; } break; case "identifier": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } Identifier = new List <Identifier>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.Identifier objIdentifier = new Fhir.R4.Models.Identifier(); objIdentifier.DeserializeJson(ref reader, options); Identifier.Add(objIdentifier); if (!reader.Read()) { throw new JsonException(); } } if (Identifier.Count == 0) { Identifier = null; } break; case "lastUpdated": LastUpdated = reader.GetString(); break; case "_lastUpdated": _LastUpdated = new Fhir.R4.Models.Element(); _LastUpdated.DeserializeJson(ref reader, options); break; case "orderable": Orderable = reader.GetBoolean(); break; case "referencedItem": ReferencedItem = new Fhir.R4.Models.Reference(); ReferencedItem.DeserializeJson(ref reader, options); break; case "relatedEntry": if ((reader.TokenType != JsonTokenType.StartArray) || (!reader.Read())) { throw new JsonException(); } RelatedEntry = new List <CatalogEntryRelatedEntry>(); while (reader.TokenType != JsonTokenType.EndArray) { Fhir.R4.Models.CatalogEntryRelatedEntry objRelatedEntry = new Fhir.R4.Models.CatalogEntryRelatedEntry(); objRelatedEntry.DeserializeJson(ref reader, options); RelatedEntry.Add(objRelatedEntry); if (!reader.Read()) { throw new JsonException(); } } if (RelatedEntry.Count == 0) { RelatedEntry = null; } break; case "status": Status = reader.GetString(); break; case "_status": _Status = new Fhir.R4.Models.Element(); _Status.DeserializeJson(ref reader, options); break; case "type": Type = new Fhir.R4.Models.CodeableConcept(); Type.DeserializeJson(ref reader, options); break; case "validityPeriod": ValidityPeriod = new Fhir.R4.Models.Period(); ValidityPeriod.DeserializeJson(ref reader, options); break; case "validTo": ValidTo = reader.GetString(); break; case "_validTo": _ValidTo = new Fhir.R4.Models.Element(); _ValidTo.DeserializeJson(ref reader, options); break; default: ((Fhir.R4.Models.DomainResource) this).DeserializeJsonProperty(ref reader, options, propertyName); break; } }